0% found this document useful (0 votes)
492 views11 pages

Operators in Python

Operators in Python manipulate the values of operands and include arithmetic, comparison, assignment, logical, bitwise, membership, and identity operators. The document discusses the different types of operators in Python and provides examples of arithmetic and comparison operators using variables a assigned to 10 and b assigned to 20.

Uploaded by

Aafia
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
492 views11 pages

Operators in Python

Operators in Python manipulate the values of operands and include arithmetic, comparison, assignment, logical, bitwise, membership, and identity operators. The document discusses the different types of operators in Python and provides examples of arithmetic and comparison operators using variables a assigned to 10 and b assigned to 20.

Uploaded by

Aafia
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 11

OPERATORS IN

PYTHON
Operators are the constructs which can manipulate
the value of operands.
Consider the expression 4 + 5 = 9. Here, 4 and 5 are
called operands and + is called operator.
Types of Operator
Python language supports the following types of operators.
● Arithmetic Operators
● Comparison (Relational) Operators
● Assignment Operators
● Logical Operators
● Bitwise Operators
● Membership Operators
● Identity Operators
Let us have a look on all operators one by one.
Python Arithmetic Operators
Assume variable a holds 10 and variable b holds 20, then −
Python Comparison Operators
These operators compare the values on either sides of them and decide the relation among them. They are also called Relational operators.
Assume variable a holds 10 and variable b holds 20, then −

You might also like