Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #minute #timer #python
ADD COMMENT
Topic
Name
5+8 =