I want to run a code / line of code once every hour when running the program in python, how do I run every hour?
I want to run a code / line of code once every hour when running the program in python, how do I run every hour?
A north to use in your code to run every hour.
import time
while True:
print("passou 1 hora executa esse comando")
time.sleep(3600) #A cada hora ele executa o print