A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times.
Rules:
A variable can have alphabets, digits, and underscore.
A variable name can start with the alphabet, and underscore only. It can't start with a digit.
No whitespace is allowed within the variable name.
A variable name must not be any reserved word or keyword. e.g: int, float, etc.
Types:
Local variable
Instance variable
Static variable
Data Types:
A Data type specifies the type of data that a variable can store.
Types:
NUMERIC
DICTIONARY
BOOLEAN
SET
SEQUENCE TYPE
integer
strings
complex number
list
float
tuble
Operators:
An Operator is simply a symbol that is used to perform operations.
Types:
Arithmetic Operators
Relational Operators
Shift Operators
Logical Operators
Bitwise Operators
Ternary or Conditional Operators
Assignment Operator
Unary Operator
Control Statements:
A Control Statement is used to check the conditon.
Types:
If statement
If-else statement
If else-if ladder
Nested If
Looping Statements:
The Looping can be defined as repeating the same process multiple times until a specific condition satisfies. There are three types of loops used in the Python language.
Types:
For loop
While loop
Do-While loop
Nested loop
List:
A List in Python is used to store the sequence of various types of data. Python lists are mutable type its mean we can modify its element after it created. However, Python consists of six data-types that are capable to store the sequences, but the most common and reliable type is the list.