Loading...
Loading...
Loading...
A support team starts a go-live countdown. The lead types a number n. Count down from n to 1, one number per line, and then print Go live!.
If n is 0, there is nothing to count, so print only Go live!.
Go live!.Example
Input
5
Output
5 4 3 2 1 Go live!
Five numbers going down, then the last line.
Try the problem first. Open one hint at a time.
Keep n as the counter. Print it, then make it one smaller.
Loop while n is at least 1. When the loop ends, print the last line once, outside the loop.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor