+ 1
Help pls. Why doesn’t work?
2 Antworten
0
I think Sololearn (app) only displays output when your program finishes running and there probably is a time limit for your code to finish running.
So you can either shorten the time of sleep() or remove it all together since you won't be able to see the outputs come out one by one anyway.
+ 2
# what did you want to achieve
# with this command?
# |
# V
# --->>> time.sleep(1)
from random import randint
import time
y = randint(1,60)
while 0 == 0:
a = randint (1,6)
print(y)
#time.sleep(1)
if a == 6:
y = y + 1
if y == 61:
break