pyBegin / projects / timer

Timer

A simple countdown timer. It asks for a duration in seconds and counts up on screen, one second at a time, until the time is up.

23 linesRunnable

Timer

A simple countdown timer. It asks for a duration in seconds and counts up on screen, one second at a time, until the time is up.

Example

Enter the duration in seconds: 5
0
1
2
3
4
Your time is up!

How to run on localhost

python main.py

Dependencies

Standard library only (time).