SlideShare a Scribd company logo
Python Operators
Python operators are symbols used to perform operations on variables and
values. They are the building blocks of any programming language, allowing
you to manipulate data and create complex logic.
by akshat shukla
Arithmetic Operators
Basic Operators
+, -, *, /, % (modulus), ** (exponent), //
(floor division)
Compound Operators
+=, -=, *=, /=, %=, **=, //=
Unary Operators
+, -
Assignment Operators
=
Assigns a value to a variable
+=, -=, *=, /=
Combine an operation with assignment
%=, //=, **=
Combine a modulo, floor division, or exponent operation with assignment
Comparison Operators
1 ==
Checks if two values are equal
2 !=
Checks if two values are not equal
3 >, <, >=, <=
Checks the relative size of two values
Logical Operators
and
Returns True if both operands are
True
or
Returns True if at least one operand
is True
not
Negates the value of the operand,
returning the opposite boolean value
Bitwise Operators
1
&
Performs a bitwise AND operation
2 |
Performs a bitwise OR operation
3
^
Performs a bitwise XOR operation
4 ~, <<, >>
Perform bitwise NOT, left shift, and right shift
operations
Identity Operators
is
Checks if two variables point to the same object in
memory
is not
Checks if two variables do not point to the same object
in memory

More Related Content

Similar to Python (high level programming ) language (20)

PPTX
Python-Operators-and-Type-Conversion.pptx
teamfnatic28
 
PPTX
operatorsinpython-18112209560412 (1).pptx
urvashipundir04
 
PDF
Operators_in_Python_Simplified_languages
AbhishekGupta692777
 
PPTX
3. Operators in python programming..pptx
tigercodingschool
 
PDF
Operators in python
Prabhakaran V M
 
PPTX
Operators Concept in Python-N.Kavitha.pptx
Kavitha713564
 
PPTX
Python Operators.pptx
adityakumawat625
 
PDF
Python : basic operators
S.M. Salaquzzaman
 
PDF
Operators in python
eShikshak
 
PDF
Python basic operators
Learnbay Datascience
 
PPSX
Python Data Types, Operators and Control Flow
Dr. A. B. Shinde
 
PPTX
Operators in python
deepalishinkar1
 
PPTX
Python operators
SaurabhUpadhyay73
 
PPTX
chapter-3-engdata-handling1_1585929972520 by EasePDF.pptx
Jahnavi113937
 
PPTX
Python Programming | JNTUK | UNIT 1 | Lecture 5
FabMinds
 
PPTX
Python Open Session.pptx
19526YuvaKumarIrigi
 
PPTX
python operators.pptx
irsatanoli
 
PDF
Python Basic Operators
Soba Arjun
 
PPTX
Python tutorials for beginners | IQ Online Training
Rahul Tandale
 
PPTX
OPERATOR IN PYTHON-PART1
vikram mahendra
 
Python-Operators-and-Type-Conversion.pptx
teamfnatic28
 
operatorsinpython-18112209560412 (1).pptx
urvashipundir04
 
Operators_in_Python_Simplified_languages
AbhishekGupta692777
 
3. Operators in python programming..pptx
tigercodingschool
 
Operators in python
Prabhakaran V M
 
Operators Concept in Python-N.Kavitha.pptx
Kavitha713564
 
Python Operators.pptx
adityakumawat625
 
Python : basic operators
S.M. Salaquzzaman
 
Operators in python
eShikshak
 
Python basic operators
Learnbay Datascience
 
Python Data Types, Operators and Control Flow
Dr. A. B. Shinde
 
Operators in python
deepalishinkar1
 
Python operators
SaurabhUpadhyay73
 
chapter-3-engdata-handling1_1585929972520 by EasePDF.pptx
Jahnavi113937
 
Python Programming | JNTUK | UNIT 1 | Lecture 5
FabMinds
 
Python Open Session.pptx
19526YuvaKumarIrigi
 
python operators.pptx
irsatanoli
 
Python Basic Operators
Soba Arjun
 
Python tutorials for beginners | IQ Online Training
Rahul Tandale
 
OPERATOR IN PYTHON-PART1
vikram mahendra
 

Recently uploaded (20)

PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Ad

Python (high level programming ) language

  • 1. Python Operators Python operators are symbols used to perform operations on variables and values. They are the building blocks of any programming language, allowing you to manipulate data and create complex logic. by akshat shukla
  • 2. Arithmetic Operators Basic Operators +, -, *, /, % (modulus), ** (exponent), // (floor division) Compound Operators +=, -=, *=, /=, %=, **=, //= Unary Operators +, -
  • 3. Assignment Operators = Assigns a value to a variable +=, -=, *=, /= Combine an operation with assignment %=, //=, **= Combine a modulo, floor division, or exponent operation with assignment
  • 4. Comparison Operators 1 == Checks if two values are equal 2 != Checks if two values are not equal 3 >, <, >=, <= Checks the relative size of two values
  • 5. Logical Operators and Returns True if both operands are True or Returns True if at least one operand is True not Negates the value of the operand, returning the opposite boolean value
  • 6. Bitwise Operators 1 & Performs a bitwise AND operation 2 | Performs a bitwise OR operation 3 ^ Performs a bitwise XOR operation 4 ~, <<, >> Perform bitwise NOT, left shift, and right shift operations
  • 7. Identity Operators is Checks if two variables point to the same object in memory is not Checks if two variables do not point to the same object in memory