Although Python has similarities to programming lanfuages like C, Perl and Java but, there are many differences also between these. The Syntax of python varies in many ways to other programming languages since there are no parentheses used in Python unlike any other programming language but in Python we use identations in place of parentheses in this.
Along with this concept the syntax of Python is very simple and easy to understand to anyone and it's simple syntax makes Python very simple to learn and use.
First Python Program
Let us execute programs in different modes of programming.
Interactive Mode Programming
In the interactive mode programming we invoke the interpreter without passing the sript file as a parameter. In this mode one line of code is written and that line is executed by the interpreter since we didn't used any script as a parameter to the interpreter. The example of this mode of programming is as follows-
>>>print("Hello World!")
Hello world!
Python Indentations >>>if 5>2:             print("five is greater than two")
We can say that the Python identations are the replacement of the parentheses of other programming languages. In other programming languages parentheses are used to indicate a block of code and the same work is done by the identations in Python.
So, to represent a block of code identations are used in Python.
Python uses indentation to indicate a block of code.
Python will give you an error if you skip the indentation:
>>>if 5>2:       print("five is greater than two")