Python Operators
Python Operators
Python Operators
❮ Previous Next ❯
Python Operators
Operators are used to perform operations on variables and values.
In the example below, we use the + operator to add together two values:
print(10 + 5)
Run example »
Arithmetic operators
Assignment operators
Comparison operators
Logical operators
Identity operators
Membership operators
Bitwise operators
https://www.w3schools.com/python/python_operators.asp 1/2
5/26/25, 8:04 AM Python Operators
** Exponentiation x ** y Try it »
ADVERTISEMENT
https://www.w3schools.com/python/python_operators.asp 2/2