time a for loop o n python 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