Storing result of variable in datetime.now()


#1

from datetime import datetime
now = 6
print datetime.now()

how do I store the result of the now variable in datetime.now()?


#2

Hi they akse you

1 Create a variable called now and store the result of datetime.now() in it.

now = datetime.now()

#3

thanks man it worked


#4

Hello! It should be like so:

from datetime import datetime
now = datetime.now()
print now