Anyone Can Code.


What are Operators?

Sammarth Kumar

Operators in Python are of many types. Their purpose is to perform operations on 2 things. The different operators we have are:

  1. Arithmetic Operators
  2. Assignment Operators
  3. Comparison Operators
  4. Logical Operators
  5. Identity Operators
  6. Membership Operators

To use an operator we would use this syntax: (item a) <operator> (item b)

At the end of this section, you will see that we have a table with operator precedence. While using operators you have to keep in mind that they are executed in a certain order by the interpreter, similar to the way we perform different mathematical operations using the BODMAS/PEDMAS rules.

That's it for this tutorial! Click Next to access the next tutorial!

❮ Back

Next ❯

Copyright © 2021, Q-Programming | Created by Arjun Sodhi, Balpreet Juneja and Sammarth Kumar | Developed and Designed by Sammarth Kumar