Answers for "20 minute timer with python"

1

20 minute timer with python

# use this
import winsound, time

while True:
    for i in range(1200):
        time.sleep(1)
        print(f'{i//60}m {i%60}sec')
    for i in range(5):
        winsound.Beep(1000, 1000)
        time.sleep(0.5)
Posted by: Guest on April-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language