0
How can i make a loop that never ends
Doesn't have to be a loop
6 Antworten
+ 5
while True:
print("ouch");
+ 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 .
+ 2
Try it, but don't go to bed...
0
Will that work
0
It's 11:48 PM
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.