0

Time up code for data revision

Task Create a timer program that will take the number of seconds as input, and countdown to 0. # take the number as input number = int(input()) #use a while loop for the countdown while number>=0: print(number) number = number-1

24th Feb 2025, 1:58 PM
Christian Francis
Christian Francis - avatar
7 Réponses
24th Feb 2025, 2:28 PM
Lisa
Lisa - avatar
+ 1
The code said it was invald for coding in data so i had to redo it
24th Feb 2025, 2:41 PM
Christian Francis
Christian Francis - avatar
+ 1
Why are you re-posting it? What new aspect came up?
24th Feb 2025, 2:44 PM
Lisa
Lisa - avatar
+ 1
Indentation is inconsistent, there's an extra space. Also the tab's 4 space and manual 4 space aren't working properly, manually add 4 spaces. And I don't see any "invalid thread" error. Are you sure you're not adding or removing something from the code?
24th Feb 2025, 3:06 PM
Afnan Irtesum Chowdhury
Afnan Irtesum Chowdhury - avatar
0
It said invalid thread in coding for data
24th Feb 2025, 2:50 PM
Christian Francis
Christian Francis - avatar
0
Yes also i follow you
24th Feb 2025, 3:39 PM
Christian Francis
Christian Francis - avatar
0
Christian Francis , your code as it is raises this error message: ... line 12 number = number-1 TabError: inconsistent use of tabs and spaces in indentation so you should remove all spaces in front of this line and then add 4 spaces in front of the line.
24th Feb 2025, 4:05 PM
Lothar
Lothar - avatar