Welcome To
Indentation


Indentation In Python

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

Indent In IF Condition

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

Examples

x= 10
if x>5:
    Print("x is greater then 5")

Indent In For Loop

Indentation in for loop the print statement must be pleaced below the variable

Examples

for i in range(1,10):
      Print(i)

Indent In Function

Indentation in function we must know the before writing the code.

Examples

def list():
      print("Hello")
list()