You are currently viewing How To Fix Python Indentation Error?
how to fix python indentation error

How To Fix Python Indentation Error?

How To Fix Python Indentation Error ?

In python indentation mean  is a number of space minimum 5 space leave then you can write the syntax or call the variable. As you know python is a procedural language. Its not like other PHP, JAVA, C++, C# AND VB.NET.

In Python script you must leave indentation space then after you can write the code. If you don’t leave the indentation you will see the indentation error in your script. You will understand the python indentation with following simple example.

For Example:

>>> If 6 > 4
    print("Six grater than four !")
Output is:
Six grater than four !
The above syntax is write .
Example #02:
>>> If 6 > 4
print("Six grater than four !")
Output is:
syntax error

Leave a Reply