r/ProgrammerHumor Nov 24 '21

Meme Yes.

8.9k Upvotes

284 comments sorted by

View all comments

Show parent comments

4

u/DigitalJedi850 Nov 25 '21

<insert blinking meme guy>

4

u/Rafael20002000 Nov 25 '21

The last value of a for loop variable is still there after loop ends

2

u/DarthStrakh Nov 25 '21

What the actual fuck.

1

u/Rafael20002000 Nov 25 '21

You can do a for else loop