+ 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
8 ответов
+ 3
# take the number as input
number = int(input())
#use a while loop for the countdown
while number>=0:
print(number)
number = number-1
+ 3
What is your question?
+ 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.
+ 3
I did it
+ 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.
+ 2
Christian Francis ,
is it working properly now?
+ 2
Yes