0
Spam Thing in Python Cant stop
https://code.sololearn.com/c5LM16f9YldR/?ref=app Why isn’t this stopping
2 Respuestas
+ 1
Inner while loop is infinite loop.
Need a condition to stop loop but in
while spam_stop < 60:
if spam_stop < 60:
print ("egg") #spam_stop <60 always true, cont get out of this..
Redundent check removed
and here is Equal code : PixelsAhead@YT
spam1000 = input()
if spam1000 == "spamtrue":
spam_stop = 0
while spam_stop < 60:
spam_stop += 1
print ("egg")
#else :
#print("something")
0
Jay Matthews i did not understand….