Rule :
Most of the things in the world are happening with a certain rule.
Language just English, Hindi, Marathi every language has rule.
The same python has some rule. they called syntax. The syntax has a value for every programming language.
They were made upon that base.

Table of Contents :
• Execute Python Syntax
• Python Indentation
• Python Variables
• Python Comments
1. Execute Python Syntax

Python syntax can directly execute in Command-Line.
Also, execute in making a file and save it.

Python Indentation
Indentation referring spaces at the beginning of the code line.
In another programming language Indentation use for purpose of readability.
In python, it represents the block of code.
Example

Python will give you an error if you missed an indentation because the second line of code separate from the first line.
Example

The number of spaces is up to you. I recommend giving 4 spaces because it is a python principle.
Example

You have to use the same number of spaces in the same blog of code. Otherwise, Python will give you an error.
Example

Python Varibles
Python variable creates when you assign a value to it.
Example: Variables in Python

• We can declare a variable without a command in Python.
Comments
Comments are describing what we are doing in a particular line.
It starts with #. After # python renders the rest of the line as a comment.
Example:-

Mistakes You can make:-
• Taking spaces in code not seriously.
• Remember one extra or less space can lose your 1hour or the whole day.
• Giving different spaces in a different block of code.
• Not using comments. Comments are used if you come after some time then you know what you have done previously.
Conclusion:-
Every programming language has its syntax. Python has an easy syntax comparison to other programming language. Easy to implement less confusion and execute on both command line and as a file.