and symbol in python code example
Example 1: operators in python
# Python Operators
Operator Name Example
+ Addition x + y
- Subtraction x - y
* Multiplication x * y
/ Division x / y
% Modulus x % y
** Exponentiation x ** y
// Floor division x // y
Example 2: arithmetic operators in python
Arithmetic operators: Arithmetic operators are used to perform mathematical
operations like addition, subtraction, multiplication and division.
Example 3: python ^ symbol
#bit-wise XOR operator
#1010 xor 0011 = 1001
print(10 ^ 3) # 9