So I am new to programming and need help with some code that dosnt seem to be working:
from datetime import datetime now = datetime.now() current_year = now.year current_month = now.month current_day= now.day current_hour = now.hour current_minute = now.minute print " the year is %s and the day is %s" %(current_year,current_day)
once I try to run this, I get an error stating:
SyntaxError: can’t assign to literal-line 3
while I understand the error I cant figure out how to solve it. Any ideas?