I downloaded python 3.3. I am just learning python and wanted to try some of it out with the actual IDE. I want to print the date and time. It says syntax error when I type in print _ . Please check if there is something wrong with the code or syntax :
>>> from datetime import datetime
>>> now = datetime.now()
>>> print now
SyntaxError: invalid syntax
>>> from datetime import datetime
>>> current_year = now.year
>>> current_month = now.month
>>> current_day = now.day
>>> print now.month
SyntaxError: invalid syntax
>>> print now.day
SyntaxError: invalid syntax
>>> print now.year
SyntaxError: invalid syntax