Getting Stuck


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

 from datetime import datetime
now =

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


Hi, @sampath598 ,

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


Okay. Got it. Thanks a lot.


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