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

PPTX
Operators-----------------in-Python.pptx
PPTX
Understanding All Types of Operators in Python with Examples"
PPTX
PYTHON OPERATORS 123Python Operators.pptx
PDF
Python Operators.pdf
PPTX
Python Lec-6 Operatorguijjjjuugggggs.pptx
PPTX
Python Operators
PPTX
Operators in Python
PPTX
Operators in Python Arithmetic Operators
Operators-----------------in-Python.pptx
Understanding All Types of Operators in Python with Examples"
PYTHON OPERATORS 123Python Operators.pptx
Python Operators.pdf
Python Lec-6 Operatorguijjjjuugggggs.pptx
Python Operators
Operators in Python
Operators in Python Arithmetic Operators

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

PPTX
Python programming language introduction unit
PPTX
Python_Operations - types of the operators
PPTX
Python-Operators-and-Type-Conversion.pptx
PPTX
operatorsinpython-18112209560412 (1).pptx
PDF
Operators_in_Python_Simplified_languages
PPTX
3. Operators in python programming..pptx
PPTX
Different Types of Operators in Python.pptx
PDF
Operators in python
PPTX
Operators Concept in Python-N.Kavitha.pptx
PPTX
Python Operators.pptx
PDF
Python : basic operators
PDF
Operators in python
PDF
Python basic operators
PPSX
Python Data Types, Operators and Control Flow
PPTX
Operators in python
PPTX
Python operators
PPTX
chapter-3-engdata-handling1_1585929972520 by EasePDF.pptx
PPTX
Python Programming | JNTUK | UNIT 1 | Lecture 5
PPTX
Python Open Session.pptx
PPTX
python operators.pptx
Python programming language introduction unit
Python_Operations - types of the operators
Python-Operators-and-Type-Conversion.pptx
operatorsinpython-18112209560412 (1).pptx
Operators_in_Python_Simplified_languages
3. Operators in python programming..pptx
Different Types of Operators in Python.pptx
Operators in python
Operators Concept in Python-N.Kavitha.pptx
Python Operators.pptx
Python : basic operators
Operators in python
Python basic operators
Python Data Types, Operators and Control Flow
Operators in python
Python operators
chapter-3-engdata-handling1_1585929972520 by EasePDF.pptx
Python Programming | JNTUK | UNIT 1 | Lecture 5
Python Open Session.pptx
python operators.pptx
Ad

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Machine Learning_overview_presentation.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Spectroscopy.pptx food analysis technology
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
Programs and apps: productivity, graphics, security and other tools
The AUB Centre for AI in Media Proposal.docx
Machine Learning_overview_presentation.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectral efficient network and resource selection model in 5G networks
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Building Integrated photovoltaic BIPV_UPV.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Spectroscopy.pptx food analysis technology
Dropbox Q2 2025 Financial Results & Investor Presentation
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Encapsulation theory and applications.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Assigned Numbers - 2025 - Bluetooth® Document
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