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
Ad

Recommended

PYTHON OPERATORS 123Python Operators.pptx
PYTHON OPERATORS 123Python Operators.pptx
AnjaneyuluKunchala1
 
Python Operators.pdf
Python Operators.pdf
SudhanshiBakre1
 
Python Lec-6 Operatorguijjjjuugggggs.pptx
Python Lec-6 Operatorguijjjjuugggggs.pptx
ks812227
 
Python Operators
Python Operators
Adheetha O. V
 
Operators in Python
Operators in Python
Anusuya123
 
Operators in Python Arithmetic Operators
Operators in Python Arithmetic Operators
ramireddyobulakondar
 
Python programming language introduction unit
Python programming language introduction unit
michaelaaron25322
 
Python_Operations - types of the operators
Python_Operations - types of the operators
KousarNadaf2
 
Python-Operators-and-Type-Conversion.pptx
Python-Operators-and-Type-Conversion.pptx
teamfnatic28
 
operatorsinpython-18112209560412 (1).pptx
operatorsinpython-18112209560412 (1).pptx
urvashipundir04
 
Operators_in_Python_Simplified_languages
Operators_in_Python_Simplified_languages
AbhishekGupta692777
 
3. Operators in python programming..pptx
3. Operators in python programming..pptx
tigercodingschool
 
Operators in python
Operators in python
Prabhakaran V M
 
Operators Concept in Python-N.Kavitha.pptx
Operators Concept in Python-N.Kavitha.pptx
Kavitha713564
 
Python Operators.pptx
Python Operators.pptx
adityakumawat625
 
Python : basic operators
Python : basic operators
S.M. Salaquzzaman
 
Operators in python
Operators in python
eShikshak
 
Python basic operators
Python basic operators
Learnbay Datascience
 
Python Data Types, Operators and Control Flow
Python Data Types, Operators and Control Flow
Dr. A. B. Shinde
 
Operators in python
Operators in python
deepalishinkar1
 
Python operators
Python operators
SaurabhUpadhyay73
 
chapter-3-engdata-handling1_1585929972520 by EasePDF.pptx
chapter-3-engdata-handling1_1585929972520 by EasePDF.pptx
Jahnavi113937
 
Python Programming | JNTUK | UNIT 1 | Lecture 5
Python Programming | JNTUK | UNIT 1 | Lecture 5
FabMinds
 
Python Open Session.pptx
Python Open Session.pptx
19526YuvaKumarIrigi
 
python operators.pptx
python operators.pptx
irsatanoli
 
Python Basic Operators
Python Basic Operators
Soba Arjun
 
Python tutorials for beginners | IQ Online Training
Python tutorials for beginners | IQ Online Training
Rahul Tandale
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
vikram mahendra
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 

More Related Content

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

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

Recently uploaded (20)

FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
 
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
War_And_Cyber_3_Years_Of_Struggle_And_Lessons_For_Global_Security.pdf
biswajitbanerjee38
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Seminar: Evolving Landscape of Post-Quantum Cryptography.pptx
FIDO Alliance
 
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Creating Inclusive Digital Learning with AI: A Smarter, Fairer Future
Impelsys Inc.
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
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