What is 'Indentation' in Python and why is it so annoying?

Asked by kemiadewale · 3 months ago

1 Answer

34
amorebise · 3 months ago Top Answer

In Python, the 'space' at the beginning of a line tells the computer which block of code a line belongs to. It’s like using paragraphs in a letter. If you don't indent properly, the computer gets confused.

It might be annoying at first, but it actually makes your code very clean and easy to read.

Log in to add a comment.