1.Introduction
Operators are some unique symbols which are used to carry out various functions. They are predefined in Python.
NOTE-On which the operators are used are known as the operand.
For example-
In the above example we have used + as a operator and a and b are the operand.
2.operators in Python are majorly classified into 5 different types
3.Arithmetic operator
It includes numeric values as we use in mathematics.
For example-
output
4.Assignment operator
These operators are used to assign some data to any unknown variables.
For example-
output
`5.Logical operator
These operator are used to combine two or more statements.
For example-
output
6.Comparison operator
This kind of operators are used to compare two statements.
They gives us the output in TRUE or FALSE .
For example-
output
example-
output
7.Identify operators
These operators are used to compare the variables if both the statements contain same kind of data in them.
For example 1 -
output
2.
output
Top comments (0)