hello every body . could you tell me what my problem is?
from datetime import datetime
now = datetime.now()
print ‘%s-%s-%s’ % (now.month, now.day, now.year)
error : Oops, try again. Your printed date doesn’t seem to be in the proper format: mm/dd/yyyy.
teempe
October 25, 2015, 7:08pm
2
You must use: ‘%s/%s/%s’ not ‘%s-%s-%s’ to pass this exercise.
Your format of date and time didn’t work. have tried this print ‘%s/%s/%s’ % (now.month, now.day, now.year)
print ‘%s:%s:%s’ % (now.hour, now.minute, now.second) and it didn’t work
1 Like
I don’t get this at all I have tried those suggestions, but it still doesn’t work.
you guys really need to follow the instructions, if instructions say nothing a about putting in the date or say %s/%s/%s then don’t do that
print now.year
print now.month
print now.date
Thank you very much, that helped I understood where I went wrong.
It’s probably how it’s worded, that’s probably why I didn’t get it thank you vanguard714.
I need help, where do I start?