Can't do python coding


#1



[https://www.codecademy.com/courses/python-beginner-en-zFPOx/0/6?curriculum_id=4f89dab3d788890003000096#]


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 = datetime.now()

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


#2

Two small issues:

'%s/%s/%s %s:%s:%s'
         ^
       space

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

#3

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