Why it says my output code didn't match what is expected?

Commented part is my original code. When I run it, it works well, but when I submit it, it shows the code didn’t match what is expected. I compare my code with the provided answer, and I don’t think there is any difference. But in case I miss something, I copy the provided answer and tried submitting it and got the same feedback that Didn’t Match What Is Expected.
I can’t find what’s wrong with my code.
Would anyone like to help? Thanks a lot!

Holy…

I understand. The reason is that I got a period at the end of template assignment, and due to the period, my output didn’t match the expected answer…

Fine.

Hope you guys will not get the same stupid problem.

1 Like