Date and time


#1



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


#2

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.


#3

Exactly as the above member said.


#4