#6 grand finale


#1



please help me debug


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


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

What's stopping you?
Do you agree with the error message?
What information are you missing?


#3

it says wrong format, no i don't understand why


#4

So it looks correct to you?
I don't see anything obvious either:

→ python2 reva.py
11/26/2016 22:29:36

So I'd need to reproduce it, I'd need a link to the exercise


#5

thank you


#6

It passes


#7

you are a genius thanks


#8

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)

Think I'm running into the same error, not sure why? Seems like you guys were able to solve it.


#9

I got it, thank you!


#10

one code at a time :wink:


#11

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