Timer

Python23 lines· 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.
Original project by @cj-praveen — view source on GitHub
Ready when you are

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.

How to run

python main.py

Dependencies

Standard library only (time).

Pyodide-runnable

Yes — it is a pure-stdlib console program; note that time.sleep blocks the browser tab while counting.

timer.py· Python 3.x
21 lines
Console· terminal