Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: plotting mean in density plot ggplot2 
Python :: convert float with missing values to integer 
Python :: how to get var value by name godot 
Python :: python create pem file 
Python :: python find string in string 
Python :: how to use custom activity in discord.py 
Python :: python remove first element of array 
Python :: Align axis labels in subplots 
Python :: come fare aprire una pagina web python 
Python :: design patterns python 
Python :: python convert datetime to float 
Python :: python calculate the power of number 
Python :: class chain methods python 
Python :: json.stringify equivalent in python 
Python :: python format decimal list 
Python :: how to run mac terminal from python script 
Python :: pyplot x vs y 
Python :: video timestamp opencv python 
Python :: image deblurring python 
Python :: pyhton apend to list 
Python :: Reversing Ints 
Python :: column of lists pandas 
Python :: python add hyphen to string 
Python :: python turtle 
Python :: format numbers in column to percentage in python 
Python :: join list of string into a single string with comma 
Python :: check this id exist in database django 
Python :: what is indentation in python 
Python :: python find minimum date in list 
Python :: boto3 python s3 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =