+ 3
Python developer course Practice (time's up)
I don't know why it doesn't work. Please can anyone explain to me? # take the number as input number=int(input()) #use a while loop for the countdown while number<0: print(number) number=number-1
2 Answers
+ 4
< means "smaller than".
when you enter 5, 5 < 0 is false and the loop will never execute.
0
Thank you