Can't do python coding



Oops, try again. Your code looks a bit off. Check the Hint if you need help! Your code threw the following error: 'str' object is not callable

I expected to succeed in the exercise.

from datetime import datetime
now =

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


Two small issues:

'%s/%s/%s %s:%s:%s'

print "%s ...." % (args)
          modulo operator


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