Python is one of the very few programming languages that relies on the use of indentation (tabs) to work.
Usually, one indentation has four spaces in Python.
For example:
![](https://cdn.prod.website-files.com/5dcb2c0e8fcf2859ddc3392a/5f20294546617b4e47a10a86_python-38.png)
The above example returns:
![](https://cdn.prod.website-files.com/5dcb2c0e8fcf2859ddc3392a/5f202951439fd303deabf7cf_python-39.png)
If we were to rewrite the above snippet as:
![](https://cdn.prod.website-files.com/5dcb2c0e8fcf2859ddc3392a/5f20295f4ad8df023d99d07e_python-40.png)
The output will be:
![](https://cdn.prod.website-files.com/5dcb2c0e8fcf2859ddc3392a/5f20297588a655020648e68b_python-41.png)
The indentation determines whether the last call to print belongs to the else statement or whether it should be called separately from the if statement.
As a side note, indentation doesn’t matter for commented out lines. To comment out lines of code in Python, just use the hash symbol, #. For example:
![](https://cdn.prod.website-files.com/5dcb2c0e8fcf2859ddc3392a/5f20297fbda53a8c734c9f1c_python-42.png)
![](https://cdn.prod.website-files.com/5dcb2c0e8fcf2859ddc3392a/5f228f7323a491f3634215ef_Python8.png)