Pretty Time


On Pretty time, my code is not passing.

My code says there is an error with my hh:mm:ss format

File "python", line 3
print 09:16:45
SyntaxError: invalid token

It should save and submit my answer. Here is my code:

from datetime import datetime
now =
print 09:16:45
print '%s:%s:%s' % (now.hour, now.minute, now.second)


this line:

print 09:16:45

is invaild syntax, remove it


Thank you for your help.


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