Help me to solve this plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me to solve this plz

# take the number as input number = int(input()) #use a while loop for the countdown while number > 0:

12th Jan 2024, 4:16 PM
Shashank Pandey
Shashank Pandey - avatar
3 Answers
+ 1
Based on the second comment in the code, I guess you're trying to write a countdown program. You should substract 1 from the input variable "number" after printing it's value in the while loop. When it reaches 0, the loop is finished.
12th Jan 2024, 7:04 PM
Jacob Morgunov
Jacob Morgunov - avatar
+ 5
what have you tried so far? start by writing a while-loop
12th Jan 2024, 4:20 PM
Lisa
Lisa - avatar
+ 3
To the best of my knowledge, this is an in-course code coach problem, you need to show us your code first because if you don't try it yourself then everything goes in vain. Hope you understood!
12th Jan 2024, 5:31 PM
卂ㄚㄩ丂卄
卂ㄚㄩ丂卄 - avatar