30th Nov 2022, 4:34 AM
Victor Miropolskiy
Victor Miropolskiy - avatar
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.
30th Nov 2022, 1:37 PM
Lochard
Lochard - avatar
+ 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
30th Nov 2022, 5:32 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar