Grand Finale ERROR


#1

This is my code.


from datetime import datetime
now = datetime.now()

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

I wanted to print out the date and time but it gives me this error

File "python", line 4
    print ('%s/%s/%s %s:%s:%s') % (now.month,now.day,now.year,now.hour,now.minute\ now.second)
                                                                                             ^
SyntaxError: unexpected character after line continuation character

Please help.


#2

you can just type it on the same line so the backslash is not neccery:

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

#3

Thank you for your help with this!


#4