**: exponentiation^: exclusive-or (bitwise)%: modulus//: divide with integral result (discard remainder)
W3Schools
w3schools.com โบ python โบ python_operators.asp
Python Operators
Python Examples Python Compiler ... Python Bootcamp Python Certificate Python Training ... Operators are used to perform operations on variables and values....
Videos
2 | Operators | Python for Complete Beginners - YouTube
Python Operators for Beginners | Python tutorial - YouTube
16:05
Python Operators and Expressions: Arithmetic and Comparison - YouTube
11:37
10 Crazy Python Operators That I Rarely Use - YouTube
Operators in Python are easy ๐ - YouTube
17:17
Learn Python in 30 Days | Day 4: Python Operators Explained ...
GeeksforGeeks
geeksforgeeks.org โบ python โบ python-operators
Python Operators - GeeksforGeeks
This operator is used to assign the value of the right side of the expression to the left side operand. ... In Python, is and is not are the identity operators both are used to check if two values are located on the same part of the memory.
Published ย December 2, 2025
Top answer 1 of 3
198
**: exponentiation^: exclusive-or (bitwise)%: modulus//: divide with integral result (discard remainder)
2 of 3
45
You can find all of those operators in the Python language reference, though you'll have to scroll around a bit to find them all. As other answers have said:
- The
**operator does exponentiation.a ** bisaraised to thebpower. The same**symbol is also used in function argument and calling notations, with a different meaning (passing and receiving arbitrary keyword arguments). - The
^operator does a binary xor.a ^ bwill return a value with only the bits set inaor inbbut not both. This one is simple! - The
%operator is mostly to find the modulus of two integers.a % breturns the remainder after dividingabyb. Unlike the modulus operators in some other programming languages (such as C), in Python a modulus it will have the same sign asb, rather than the same sign asa. The same operator is also used for the "old" style of string formatting, soa % bcan return a string ifais a format string andbis a value (or tuple of values) which can be inserted intoa. - The
//operator does Python's version of integer division. Python's integer division is not exactly the same as the integer division offered by some other languages (like C), since it rounds towards negative infinity, rather than towards zero. Together with the modulus operator, you can say thata == (a // b)*b + (a % b). In Python 2, floor division is the default behavior when you divide two integers (using the normal division operator/). Since this can be unexpected (especially when you're not picky about what types of numbers you get as arguments to a function), Python 3 has changed to make "true" (floating point) division the norm for division that would be rounded off otherwise, and it will do "floor" division only when explicitly requested. (You can also get the new behavior in Python 2 by puttingfrom __future__ import divisionat the top of your files. I strongly recommend it!)
Programiz
programiz.com โบ python-programming โบ operators
Python Operators (With Examples)
In this tutorial, we'll learn everything about different types of operators in Python, their syntax and how to use them with examples.
DigitalOcean
digitalocean.com โบ community โบ tutorials โบ python-operators
Python Operators - A Quick Reference | DigitalOcean
August 4, 2022 - Python operators allow us to do common processing on variables. We will look into different types of operators with examples and also operator precedence.
DataCamp
datacamp.com โบ tutorial โบ python-operators-tutorial
Python Operators | DataCamp
August 24, 2018 - These operators, also known as Boolean operators, evaluate multiple conditions and determine an expression's overall truth value. ... Learn about type checking, different types of the type system in various languages along with duck typing, and type hinting. ... Get introduced to Python data structures: learn more about data types and primitive as well as non-primitive data structures, such as strings, lists, stacks, etc.
Tutorialspoint
tutorialspoint.com โบ home โบ python โบ python operators
Python Operators
February 21, 2009 - Explore the different types of operators in Python, including arithmetic, comparison, logical, and bitwise, with examples.
Codecademy
codecademy.com โบ docs โบ python โบ operators
Python | Operators | Codecademy
July 22, 2025 - Perform operations on variables and values using special symbols and keywords in Python.
Reddit
reddit.com โบ r/learnpython โบ what does the "@" operator do in python?
r/learnpython on Reddit: What does the "@" operator do in Python?
June 7, 2021 -
I know in MATLAB it has something to do with function handles but I hadn't really ever used it in MATLAB either. You can see an example in this video: https://www.youtube.com/watch?v=Oi4SJqJIL2E. It's the line:
X = R @ np.diag(sig) @ no.random.randn(2, nPoints) ...
Top answer 1 of 4
4
Matrix multiplication.
2 of 4
2
When used with numpy.ndarrays, it returns their dot product. It is equivalent to numpy.dot and numpy.matmul, at least in terms of what is returned: >>> import numpy as np >>> arr1 = np.random.random(size=10) >>> arr2 = np.random.random(size=10) >>> arr1 @ arr2 == arr1.dot(arr2) == np.matmul(arr1, arr2) True Given your example, this is probably what you're referring to. However just in case not, there are other uses too. When used inside an expression with certain pandas.DataFrame methods, it allows the expression to "refer to" variables inside the local scope: >>> import pandas as pd >>> df = pd.DataFrame(arr1.reshape(5, 2), columns=list('AB')) >>> df A B 0 0.668860 0.391135 1 0.783348 0.409055 2 0.642375 0.124112 3 0.531619 0.147709 4 0.839720 0.126970 >>> x = 0.7 >>> df.query('A > @x') A B 1 0.783348 0.409055 4 0.839720 0.126970 @ is also used to assign a decorator to a function. I'm drawing a blank on other possible meanings/usages, but they probably exist.
Python documentation
docs.python.org โบ 3 โบ reference โบ expressions.html
6. Expressions โ Python 3.14.3 documentation
This chapter explains the meaning of the elements of expressions in Python. Syntax Notes: In this and the following chapters, grammar notation will be used to describe syntax, not lexical analysis. When (one alternative of) a syntax rule has the form: ... When a description of an arithmetic operator below uses the phrase โthe numeric arguments are converted to a common real typeโ, this means that the operator implementation for built-in numeric types works as described in the Numeric Types section of the standard library documentation.
Python Reference
python-reference.readthedocs.io โบ en โบ latest โบ docs โบ operators
Operators โ Python Reference (The Right Way) 0.1 documentation
Shifts the bits of the first operand right by the specified number of bits.