Help!


#1



https://www.codecademy.com/courses/python-beginner-en-zFPOx/0/5?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: invalid syntax (python, line 3)


it should work...I think, but it doesn't. I t seems like something is wrrrong.


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


#2

That line should be removed. It is causing the syntax error.


#3

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