+ 3

[Solved] Time up condition foundation

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

16th Feb 2025, 7:35 PM
Christian Francis
Christian Francis - avatar
8 Antworten
+ 3
# take the number as input number = int(input()) #use a while loop for the countdown while number>=0: print(number) number = number-1
16th Feb 2025, 8:09 PM
Christian Francis
Christian Francis - avatar
+ 3
What is your question?
16th Feb 2025, 7:36 PM
Lisa
Lisa - avatar
+ 3
1. Mention the course name. Here in the thread. 2. Give a complete task description. 3. Show your complete code. 4. State what issues you encounter. People can help when you give them all the relevant information.
16th Feb 2025, 8:00 PM
Lisa
Lisa - avatar
+ 3
I did it
16th Feb 2025, 8:08 PM
Christian Francis
Christian Francis - avatar
+ 2
Christian Francis , there are 2 issues in your code. > the line: number = number-1 creates a `TabError`: inconsistent use of tabs and spaces in indentation check this line by removing all spaces / tabs at the left side, then use spaces to forme a correct indentation at the same level as the line above.
16th Feb 2025, 8:04 PM
Lothar
Lothar - avatar
+ 2
Christian Francis , is it working properly now?
16th Feb 2025, 8:11 PM
Lothar
Lothar - avatar
+ 2
Yes
16th Feb 2025, 8:13 PM
Christian Francis
Christian Francis - avatar