I am currently using Codeacademy to learn Python. It is the first language I have ever tried to learn and I am currently stuck. Now I'm not stuck because I couldn't get past a certain lesson. I'm stuck because I had to do a quick search on the internet to find out what the first line of code was supposed to be. It never said anything about that first line anywhere and I want to know what it's supposed to do. Here is the full code when it is completed, correctly:
from datetime import datetime
now = datetime.now()
print now
year = now.year
month = now.month
day = now.day
print year
print month
print day
print str(month) + "/" + str(day) + "/" + str(year)
I kept getting an error telling me that datetime is not defined. I finally found that first line by looking through the Q&A section of Codeacademy.