Is it necessary to write "from datetime import datetime"?


#1

I can just type:

print datetime.now()

It will be enough to display the current day and time.

The link to the exercise: https://www.codecademy.com/courses/learn-python/lessons/date-and-time/exercises/pretty-time?action=resume_content_item


#2

you have to import the class, otherwise you get an error. If it works after you removed the import, its because of caching.