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


#1



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

So it's like:

now=datetime.now()?


Replace this line with your code.


#2

Yep, however, you got another step: 02.) Then, print the value of now.


#3

but when I put: print datetime.now() does not work


#4

That is your problem! And where the example can be misleading. All you have to do is print now! Now has a stored value of datetime.now() so when you print now it prints that value.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.