Another one stuck on 4/6!


#1

My code is-

from datetime import datetime
now = datetime.now()

print '%s\%s\%s' % (now.month, now.day, now.year)

Every time I save and submit it tells me my formatting is wrong but I can't spot the error, anyone able to help?


#2

Hey @togsee! You had forward slashes on your s here:

It suppose to be back slashes like this:

print "%s/%s/%s"%(now.month, now.day , now.year)


#3

Hello, the problem is that you use the wrong type of slashes
Try to use "/" instead of "\" so you will have '%s/%s/%s' and not '%s\%s\%s'