It is a very important part and concept in python we don't know about this we can't do the python code . indent in a python it is a space at the beginning of the line code. the python indentation is make code block that is help full for interpreter to execute the [code without error. in basically other language like c we are using curly braces to divide the code block but here we using indent . it avoid the Syntax error, and make code structure . free execution
The indent in if condition we must be know the indent in if condition otherwise the python interpreter gives indentation error. EXample in the below
x= 10
if x>5:
Print("x is greater then 5")
Indentation in for loop the print statement must be pleaced below the variable
for i in range(1,10):
Print(i)
Indentation in function we must know the before writing the code.
def list():
print("Hello")
list()