• Faresh@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I don’t think you can use python list comprehensions in this case, since you don’t want a new list, but rather reduce it to a single value.