What is the problem in my code?


#1
from datetime import datetime
now = datetime.now()

print '%s/%s/%s %s:%s:%s' % (now.month,now.day.now.year,now.hour, now.minute,now.second)

error - Traceback (most recent call last):
File "python", line 4, in
AttributeError: 'int' object has no attribute 'now'
please explain the error?


#2

there's a period in between 'now.day' and 'now.year' instead of a comma