The Universe Is Done Bro Im Crine

The Universe Is Done Bro Im Crine
python-memes, infinite-loop-memes, random-memes, bad-code-memes, debugging-memes | ProgrammerHumor.io

Someone wrote a loop that's supposed to run 10^100 times (a googol, literally more iterations than atoms in the observable universe), but there's a fatal flaw: if randint(0,1) returns 0, it resets i back to 0. So you've got a 50/50 chance every iteration of going back to square one.

The heat death of the universe will arrive before this loop finishes. Your descendants 10 billion years from now will still be sitting there watching i bounce between 0 and maybe 47 if they're lucky. The print statement is pure poetry though—passive-aggressively asking why you're still at your computer when the universe itself has given up. Truly a masterpiece of accidental infinite loops disguised as ambition.

More Like This