Different Kinds of Python Data Types
Different Kinds of Python Data Types
There are different types of data types in Python. Some built-in Python data
types are:
+ Addition x+y
- Subtraction x-y
* Multiplication x*y
/ Division x/y
% Modulus x%y
** Exponentiation x ** y
// Floor division x // y
= x=5 x=5
+= x += 3 x=x+3
-= x -= 3 x=x-3
*= x *= 3 x=x*3
/= x /= 3 x=x/3
%= x %= 3 x=x%3
//= x //= 3 x = x // 3
**= x **= 3 x = x ** 3
|= x |= 3 x=x|3
^= x ^= 3 x=x^3
:= print(x := 3) x=3
!= Not equal x != y
<< Zero fill Shift left by pushing zeros in from the x << 2
left shift right and let the leftmost bits fall off