Right code, but codecademy says wrong

Hi. I wrote this following code in this picture:

Codecademy tells me it’s wrong.

I don’t see what’s incorrect, am i missing something important?

And here’s the right code. I don’t see much of a difference?

code is formal language, if you write text that does not conform to that language then it is not a valid program
there is nothing that will correct things that are nearly right, other than you yourself
and that’s a good thing, otherwise code would get misinterpreted

if you stop thinking of code as text and instead consider what it is you wrote, then you’ll find that the difference is very large

or if you don’t know what you wrote then you’re going about things backwards. you have to leverage things that you do know to get what you want

2 Likes