Grand finale help


#1



I get this error:
Your printed date and time do not seem to be in the right format: mm/dd/yyyy hh:mm:ss

Why isn't it working


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

It would seem your problem is here. Your spacing is too much in between your two %s statements. Try this:

print "%s/%s/%s %s:%s:%s" %

#4

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