It is best to post code as formatted text in the forums, rather than as captured images, so that users can copy, paste, and test it. With Python code, this testing may include checking the details of the indentation. In the case of your code, for example, we would check whether the whitespace in the
if block is composed of spaces, tabs, or a combination of the two. Make sure that your whitespace is composed of one or the other, rather than both. For advice of how to format code as you post it, see How to ask good questions (and get good answers).
Python editors vary regarding how much whitespace they insert, by default, for each level of indentation and whether they insert tabs or spaces. For most or all of Codecademy’s current Python content, the default is two spaces for each level of indentation. Whenever you start using a particular editor for the first time, you should find out, through trial and error, and documentation if it is available, how it behaves, so that you develop an intuitive knowledge of what sort of whitespace you are getting. Find out, for instance, whether using the tab key literally inserts a tab, or whether it inserts some number of spaces.