Date and Time #6. Grand Final


Why does it say the code is incorrect? What am I doing incorrectly? I followed all the instructions. The error message says "Traceback (most recent call last):
File "python", line 4, in
ValueError: unsupported format character ':' (0x3a) at index 12"

from datetime import datetime
now =

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


The modulo on the right is the one to remove.

Check the other three to the right of that. They are reversed.


Thank you! I appreciate that.


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