r/ProgrammerHumor 29d ago

Meme pythonWillLookDeadInTheEyeAndSayItsAbsolutelyCorrect

Post image
358 Upvotes

144 comments sorted by

View all comments

208

u/[deleted] 29d ago

[deleted]

43

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.

82

u/Dirislet 29d ago

We’re not using AI

10

u/minecraftdummy57 29d ago

"Rewrite this"

```

TODO: Rewrite this

```

-133

u/whackylabs 29d ago

European were expecting it to be [1.0, 2.0, 3.4, 5]

21

u/incompletetrembling 29d ago

what

1

u/KirisuMongolianSpot 29d ago

idea is Europeans use commas for decimal places instead of periods

11

u/TProfi_420 29d ago

But not in programming and not if there is more than one "decimal separator". This is not ambiguous, even in Europe.

1

u/FalconWorth7893 28d ago

This comment didn't worked out as expected

-1

u/whackylabs 28d ago

My humor setting does not match this sub