from datetime import datetime now = datetime.now() print '%s/%s/%s %s:%s:%s' % (now.month, now.day, month.year, now.hour, now.minute, now.second)
The above is the code I used and below is the error I receive. Any advice on what I am doing wrong?
Traceback (most recent call last):
File “python”, line 4, in
NameError: name ‘month’ is not defined