---
title: "Python Operators Complete Tutorial"
url: https://weworkworldwide.com/tutorials/python-operators-complete-tutorial/
description: "In this section we will learn what the operators are and how to use them in Python. Operators in Python In python we’re allowed to run different types of o"
date: 2026-05-16T22:32:25+00:00
source: https://weworkworldwide.com/llms.txt
---

# Python Operators Complete Tutorial

In this section we will learn what the operators are and how to use them in Python.

## Operators in Python

In python we’re allowed to run different types of operations. For example, we can add, multiply, divide or subtract two or more values from each other!

Now Python provided a set of symbols and signs to be used for such operations and they are called operators.

For example, one of these operators is called multiplication and we invoke the operator using the `*` symbol.

## Symbol in Python

In Python each operator has a sign AKA symbol and we use those symbols to invoke the target operator etc.) For example, one of these operators is addition operator and its sign (or symbol) is `+`.

So yeah, symbols in Python are basically the signs of operators and we use them in different operations.

## Python Operands:

Operators like multiplication or division etc. needs two or more values in order to function properly. These values are called operands.

## Python LValues and RValues

The value that we put on the left side of an operator like assignment `=` or multiplication `*` etc. is called Lvalue (L stands for Left) and the value we put on the right side of the operators is called RValue (R stands for Right).

## Example: using lvalues and rvalues in Python

``` line-numbers
res = 10 +30
print(res)
Here we have two operators:
```

The assignment `=` operator and the addition `+` operator.

For the assignment `=` operator the Lvalue is `res` and the RValue is the sum of `10+30`.

Also for the addition operator `+`, the LValue is 10 and the RValue is 30.

## List of Python Operators

In Python there are multiple different types of operators for different purposes. In later sections we will dive deep into each of these operators but for now, here’s an introductory list of these operators:

## Python Arithmetic Operators

These operators are used for arithmetic operations like addition, subtraction, multiplication etc.

[TABLE]

## Python Comparison Operators

These operators are used for comparing two or move values to see if they are equal or one is greater than the other.

[TABLE]

## Python Logical Operators

These operators are used for combining the results of comparing two or more comparison operators or even negate their results.

[TABLE]

## Python Assignment Operators

We use the assignment operators for assigning a value to a variable (making a variable to point to a value in a memory).

| ***Operator***                         | ***Symbol*** |
|----------------------------------------|--------------|
| Assignment operator                    | =            |
| Addition and Assignment operator       | +=           |
| Subtraction and Assignment operator    | -=           |
| Multiplication and Assignment operator | *=          |
| Division and Assignment operator       | /=           |
| Exponentiation and Assignment Operator | **=        |
| Modulus and Assignment Operator        | %=           |
| Floor Division and Assignment Operator | //=          |

## Identity Operators in Python

The identity operators are used to see if two values are the same or not. (if they live in the same memory space or they have two separate and independent locations in the memory).

[TABLE]

## Membership Operators in Python

Using these operators, we can check and see if a list or tuple or dictionary (basically those types that can take multiple values) has specific value in their list or not.

[TABLE]
