Error in code


Link to the exercise

Error Message:
3//2017 20:12:11

It should have printed mm/dd/year hour:minute:second

My code is 

 from datetime import datetime
now =

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


Did you mean to write,


Oh yes. Omg. What a blunder Thanks :slight_smile:


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