0

my code not working

i saw a tutorial for making a simple countdown like this: for seconds in range (10,0,-1) print (seconds) time.sleep(1) but when i went to try it it didn't work, pls help me.

6th Aug 2022, 1:09 PM
Hosam BTW
Hosam BTW - avatar
2 Answers
+ 2
it works, but you need to import time at the top. You also shouldn't run in it in sololearn as it doesn't do interactive console programs
6th Aug 2022, 1:13 PM
Slick
Slick - avatar
0
for seconds in range(10,0,-1):👈😉 print(seconds)
6th Aug 2022, 1:43 PM
Solo
Solo - avatar