Why doesn’t it accept my answer if I put spaces around the slashes?

below code will also work

print (now.strftime(’%m/%d/%Y’))

my issue is its asking for the format of month day year witch i have set in my code but it argues i haven’t set my code in that format Imgur: The magic of the Internet

The error message makes very clear what is wrong in your format. One of the most important rules of programming is to never be so convinced your code is right that you miss the clues right under one’s nose. Be critical, especially when it comes to your own work.

I don’t understand why, I noticed the exact same and I’m wondering why…

print “%02d/%02d/%02d” % (now.year, now.month, now.day)
Result - 2023/11/30

Explain!