how to make countdown in python with input code example
Example 1: how to make a minute counter in python
counter = 1
print(counter)
import time
while True:
time.sleep(60)
counter += 1
print(counter)
#this adds one to the counter every 60 seconds
Example 2: how to make a timer in python
#Timer in python
#pip install playsound
import time
import playsound
question = int(input('How many seconds to wait: '))
time.sleep(question)
playsound.playsound('Hello.mp3')