0

Solved time up for coding data

Your are creating a time sheet for a data set # take the number as input number = int(input()) #use a while loop for the countdown while number>= 0: print(number) number=number-1

22nd Feb 2025, 4:51 PM
Christian Francis
Christian Francis - avatar
8 Réponses
+ 1
OK look at your code What is while, is it a conditional block ? ending in a colon ':' If so the lines below it are required to be indented .. look at your own code in the comments of the previous thread.
22nd Feb 2025, 5:18 PM
BroFar
BroFar - avatar
+ 1
Yes it does and this is directly your answer from the previous conversation Christian Francis you just asked and received responses as you said you did it ... https://www.sololearn.com/Discuss/3317978/?ref=app https://sololearn.com/compiler-playground/cddsiTBJVV70/?ref=app
22nd Feb 2025, 5:25 PM
BroFar
BroFar - avatar
+ 1
It did, it does, and you even have an example in your codes from a year ago that is a working example only dealing with seats. seats = int(input()) # initial number of seats while seats >= 0: # seat available? print(seats) # ticket sold seats = seats - 1 # number of seats updated https://sololearn.com/compiler-playground/c0f51l8PucGt/?ref=app
22nd Feb 2025, 5:49 PM
BroFar
BroFar - avatar
0
Christian Francis you just asked and received responses as you said you did it ... https://www.sololearn.com/Discuss/3317978/?ref=app
22nd Feb 2025, 5:03 PM
BroFar
BroFar - avatar
0
That did not work
22nd Feb 2025, 5:13 PM
Christian Francis
Christian Francis - avatar
0
It does not like print (number)
22nd Feb 2025, 5:22 PM
Christian Francis
Christian Francis - avatar
0
Its not working
22nd Feb 2025, 5:42 PM
Christian Francis
Christian Francis - avatar
0
I did it thank you
22nd Feb 2025, 6:03 PM
Christian Francis
Christian Francis - avatar