does a for loop in python time out code example
Example: python time function in for loop
from datetime import datetime
def currenttime():
now = datetime.now()
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
return dt_string
from datetime import datetime
def currenttime():
now = datetime.now()
dt_string = now.strftime("%d/%m/%Y %H:%M:%S")
return dt_string