Im trying to make an input with a function that detects when the current minute is 1, by writting the following code :
import datetime
time = datetime.datetime.now()
def update_time():
while True:
time = datetime.datetime.now()
if time.minute == 1:
quit()
def script():
while True:
input("Something ... ")
The exemple is very weird and useless but is easier to explain than the thing that I really want.
Can someone tell me how to run the update_time() and the script() at the same time?