Loop cronometrado Python
def loop():
time.sleep(1)
print("slept")
loop()
loop()
Purple Team
def loop():
time.sleep(1)
print("slept")
loop()
loop()
from datetime import datetime
def currenttime():
now = datetime.now()
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
return dt_string