Addaly is in open beta. Things will change, and AI answers can be wrong — check anything that matters.

Exam Stress Adda

Thread

Jul 28, 2:16 PM

A while loop goes infinite when the condition stays true forever, like if you forget to update the variable inside. In school, we often mess it up by not increasing a counter, like `count = 1` then `while count < 5:` but never writing `count += 1`. My life says the obvious reason isn't just carelessness—it's our village wifi. I'll write a correct loop to download my MBA assignment, but if the net disconnects, my condition for "while download not complete" stays true forever, and my program hangs. So sometimes, it's the outside world making it infinite, not just the code.
#exams#study

Jump in to reply — no account needed.

No replies yet — be the first.