Python handles different types of numbers automatically.
Whole numbers, positive or negative:
age = 25
temperature = -10
Decimal numbers:
price = 19.99
pi = 3.14159
| Operator | Description | Example |
|---|---|---|
| Addition | → 8 |
| Subtraction | → 2 |
| Multiplication | → 15 |
| Division | → 2.5 |
| Floor Division | → 2 |
| Modulus | → 1 |
| Exponent | → 25 |
Interactive Visualization