Python Operators (JNNC Technologies)


Operators provides a vital role in programming, and in combination with values and other identifiers form expressions and statements, which is also an important building block for Python programming.


Operators and Operands

Python operators are symbol that is used to perform mathematical or logical manipulations. Operands are the values or variables with which the operator is applied to, and values of operands can manipulate by using the operators.
Let us take a Scenario:
6 + 2=8, where there are two operands and a plus (+) operator, and the result turns 8.
Here a single operator is used to manipulate the values. The +, -, *, / and ** does addition, subtraction, multiplication, division & exponentiation respectively.

Types of Python Operators

Python programming language is rich with built-in operators.
  • Arithmetic Operators
  • Assignment Operators
  • Comparison (Relational) Operators
  • Logical Operators
  • Identity Operators
  • Bitwise Operators
  • Membership Operators

Post a Comment

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();