Date and time


print '%s/%s/%s  %s:%s:%s' % (now.month,, now.year, now.hour, now.minute, now.second). 
getting error for the above code


Hi @jamunavignesh,

You have two spaces in the format specifier. The instructions include the following ...

Print the date and time together in the form: mm/dd/yyyy hh:mm:ss.

In the specified form, there is only one space between the date and the time.


Exactly as the above member said.