Python indentation is something that is a foundation concept for any new python programming, understanding how indentation works are the first step before you can start writing code in python. Without the use of good editors/Ide’s that help with the indentation, writing a python code, especially huge lines of code is sometimes a tedious task, because, for each line, we should make a type in the indentation as well.If the number of lines in python code is huge, sometimes this can become tedious if by chance the indentation is corrupted. Code must be carefully indented with proper no of whitespace and making sure that uniformity of whitespaces is maintained in a single block.a block of code is represented by Curly braces errors that sometimes popup in c,c++ languages can be avoided in python, also the number of lines of code is reduced. So whereas in languages like c, c++, etc. Python treats the statements that have the same indentation level (statements that have equal no of whitespaces before them) as a single block of code.
The reason why indentation is important in python is that the indentation serves another purpose other than code readability.
Indentation is the leading whitespace ( spaces and tabs ) before any statement in python.