programplug Logo




Python Operators


» An operator is a symbol that is used to perform mathematical or logical operation.
» There are common types of operators are given which are use in Python language.


  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Bitwise Operators
  • Membership Operators
  • Assignment Operator
  • Identity Operators

Arithmetic Operators

An Arithmetic operator is a mathematical operator that performs a calculation on them.


+ , - , * , / , %
 
add=20+20
sub=20-10
mul=20*10
div=20/10

output:-
40
10
200
2


Relational Operators

An operator that defines some kind of relation between two entities.


< , > , = , !=,==
 
a>b
a==b
a=b
a!=b

Logical Operators

Logical operator returns the boolean value true or false


||(OR) &&(AND) !(NOT)
 
a=5>4 and 3>2    
b=5>4 or 3<2    
c=not(5>4) 






Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training
SCO,SMO

Contact Us

Dehradun Uttarakhand India
www.programplug.com
info@programplug.com
08534019974
Designed By : Mridul Gupta

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy