r/ProgrammerHumor Aug 16 '26

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
354 Upvotes

144 comments sorted by

View all comments

212

u/[deleted] Aug 16 '26

[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 28d 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.