Tuesday, July 26, 2022
HomeWordPress DevelopmentOperators in Python - DEV Neighborhood

Operators in Python – DEV Neighborhood


1.Introduction
Operators are some distinctive symbols that are used to hold out varied capabilities. They’re predefined in Python.
NOTE-On which the operators are used are often called the operand.
For instance-Image description

Within the above instance we’ve used + as a operator and a and b are the operand.
Image description
2.operators in Python are majorly categorised into 5 differing types
Image description

3.Arithmetic operator
It consists of numeric values as we use in arithmetic.
Image description
For instance-Image description
output
Image description

4.Project operator
These operators are used to assign some knowledge to any unknown variables.
Image description
For instance-Image description
output
Image description
`5.Logical operator
These operator are used to mix two or extra statements.
Image description
For instance-Image description
output
Image description

6.Comparability operator
This type of operators are used to match two statements.
They provides us the output in TRUE or FALSE .
Image description
For instance-Image description
output
Image description
example-Image description
output
Image description

7.Establish operators
These operators are used to match the variables if each the statements include similar form of knowledge in them.
Image description
For instance 1 –Image description
output
Image description
2.Image description
output
Image description

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments