this post was submitted on 16 Jul 2023
1667 points (96.6% liked)

Memes

45890 readers
1495 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 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.