Answers for "how to stop a python program after a certain time"

2

how to stop python for some time in python

now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Posted by: Guest on July-26-2021
3

how to stop python for certain time in python

import time
How_long = 5
time.sleep(How_long)
print("Look I got printed after 5 seconds")
Posted by: Guest on August-25-2021

Code answers related to "how to stop a python program after a certain time"

Python Answers by Framework

Browse Popular Code Answers by Language