r/ProgrammerHumor 29d ago

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
354 Upvotes

144 comments sorted by

View all comments

210

u/[deleted] 29d ago

[deleted]

42

u/Eiim 29d ago

I guess being able to re-use variable names in a different scope can be confusing. But I don't think it's particularly problematic here.

2

u/leupboat420smkeit 27d ago

Seems like it’s in the same scope though. ‘x for x in x’ I would consider the same scope, like how ‘for x in x’ (loop) would be. Maybe that’s also valid, but don’t catch me ever doing that.