0% found this document useful (0 votes)
18 views1 page

Operators and Expressions in Python

The document explains operators and expressions in Python, defining an operator as a symbol used to perform operations on data. It lists seven types of operators in Python, including arithmetic, assignment, relational, logical, bitwise, membership, and identity operators. Notably, it mentions that Python does not support unary increment/decrement operators and has its own version of the ternary operator.

Uploaded by

anshumangiri392
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Operators and Expressions in Python

The document explains operators and expressions in Python, defining an operator as a symbol used to perform operations on data. It lists seven types of operators in Python, including arithmetic, assignment, relational, logical, bitwise, membership, and identity operators. Notably, it mentions that Python does not support unary increment/decrement operators and has its own version of the ternary operator.

Uploaded by

anshumangiri392
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

=======================================================

Operators and Expressions in Python

=======================================================
=>An Operator is a Symbol, which is used to perform Certain Operation on
the Data / Values / Objects.
=>If Two OR More Values connected with an Operator then It is Called
Expression.
=>In Otherwords, An Expression is a Collection of Two OR More Values
Connected with an Operator.
=>In Python Programming, we have 7 Types of Operators. They are

1. Arithmetic Operators
2. Assigment Operator
3. Relational Operators ( Comparsion Operators)
4. Logical Operators ( Comparsion Operators)
5. Bitwise Operators--Most Imp
6. Membership Operators
a) in Operator
b) not in Operator
7. Identity Operators
a) is operator
b) is not Operator
-------------------------------------------------------------------------
-------------------------------------------------------------------------

NOTE-1: Python Does Not Support Unary Increment and Decrement Operator
(Pre and Post) ++ and --
NOTE-2: Python Does Not Support Ternary Operator of C,C++ and Java Lang (
Varname= Expr1 ? Expr2:Expr3 )
------------------
NOTE-3: Python Supports Its Own Ternary Operator---- if..else operator
NOTE-4: Python Supports Short Hand Operatos such as += -= *= ...etc
-------->Efficiency Purpose.
-------------------------------------------------------------------------
------------------------------------------------------------------------

You might also like