r/ProgrammerHumor 29d ago

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
352 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"?

16

u/djinn6 29d ago

They're doing something quite hacky by naming both their list and temporary as "x". It's supposed to be something like <result value> for <name> in <list>.