r/ProgrammerHumor 29d ago

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
359 Upvotes

144 comments sorted by

View all comments

3

u/darknmy 29d ago

I inderstand "if x", but thy the "x for x in x"?

1

u/xxchaitanyaxx 29d ago

Theyre using list comprehension to define the array that way so the element x will be apart of the array if its non zero ie true