Im Stuck


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

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

its giving me an error but i did everything right… I think.



from datetime import datetime
now = datetime.now()

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


The error says "Oops, try again. Your printed date and time do not seem to be in the right format: mm/dd/yyyy hh:mm:ss"

#2

We’re supposed to print this altogether.


#3

Combine both expression into one statement.


#5

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