Hot Date seems not working properly


When i use the seemingly correct code i get the following result:

5/<built-in method date of datetime.datetime object at 0x7f608b712f58>/2017

For some reason if i submit the solution only replacing the "-" with "/" it works, although the order is still wrong:

from datetime import datetime
now =

print '%s/%s/%s' % (now.year, now.month,
#This code gets accepted

My proposed solution:

from datetime import datetime
now =

print '%s/%s/%s' % (now.month,, now.year)
#This code throws the above described error

Thanks for your help!


This should be


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