pyBegin / projects / countdown

Countdown Timer

A simple console countdown timer: enter a number of seconds and it counts down in MM:SS format, printing "Time Up" when finished.

21 linesRunnable

Countdown Timer

A simple console countdown timer: enter a number of seconds and it counts down in MM:SS format, printing "Time Up" when finished.

Example

Enter the time in seconds: 10
00:10
00:09
00:08
...
00:01
Time Up

How to run on localhost

python countdown.py

Dependencies

Standard library only (time).