Storing result of variable in datetime.now()

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

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

Hi they akse you

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

now = datetime.now()
3 Likes

thanks man it worked

1 Like

Hello! It should be like so:

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

1 Like