Wrong format


#1


https://www.codecademy.com/en/courses/python-beginner-en-zFPOx/0/6?curriculum_id=4f89dab3d788890003000096

its showing the following error messege -printed date and time do not seem to be in the right format: mm/dd/yyyy hh:mm:ss


python
Replace this line with your code.
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)


#2

Have you tried a reset Browser using the F5-function-Key


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.