Python date and time #2


#1

Its asking me

  1. Create a variable called now and store the result of datetime.now() in it.
  2. Then, print the value of now

My answer was

  1. now = datetime.now()
  2. print now

but it’s not working. please help


#2

Did you by any chance remove the first line that was already there for you?

from datetime import datetime

#3

ya i did. thanks so much!