Getting Stuck


#1


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


I don't know why is this not working??

 from datetime import datetime
now = datetime.now()

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


#2

Hi, @sampath598 ,

You cannot concatenate two print statements. Instead, combine the output into one expression, and print that in a single statement.


#3

Okay. Got it. Thanks a lot.


#4

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