CJCoding With Joseph
15free / daySign inCreate account

Countdown Inside A Function

Complete count_down(start: int) -> None so it prints every whole number from start down to 1, one per line, using a while loop that lowers the parameter by one each pass; a start of 0 or less prints nothing. The tests call the function and then print Done on its own line. Do NOT write a main block or any top-level test code; the tests construct the calls. Input: one line, an integer, which the tests read and pass to your function.

Expected Output:

3
2
1
Done

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
Functions
📥 Auto-Input:
3\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.