• Faresh@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    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.