0

How can i make a loop that never ends

Doesn't have to be a loop

10th Aug 2020, 9:20 PM
DeadEye UNT
DeadEye UNT - avatar
6 Réponses
+ 5
while True: print("ouch");
10th Aug 2020, 9:21 PM
Sandra Meyer
Sandra Meyer - avatar
+ 3
Make conditions as never fails.. simply remove increment or decrement then the loop never ends.. keep continuing.. It's important to declare exit conditions clearly. Otherwise program crashes .
11th Aug 2020, 1:16 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar
+ 2
Try it, but don't go to bed...
10th Aug 2020, 9:47 PM
Sandra Meyer
Sandra Meyer - avatar
0
Will that work
10th Aug 2020, 9:39 PM
DeadEye UNT
DeadEye UNT - avatar
0
It's 11:48 PM
10th Aug 2020, 9:48 PM
DeadEye UNT
DeadEye UNT - avatar
0
There are a lot of choices: while True: or while 1==1: or a for loop that needs a positive number to break, but with index number always decreasing.
12th Aug 2020, 6:22 AM
Artem 🇺🇦
Artem 🇺🇦 - avatar