Python works with two main types of numbers:
5, 42, 10003.14, 2.0, 99.99You can assign numbers to variables just like strings:
age = 25
price = 19.99Python can do standard arithmetic:
5 + 3 → 810 - 4 → 66 * 7 → 4220 / 5 → 4.0 (note: division always returns a float)2 ** 3 → 8You can also combine variables in operations:
total = price * 3
print(total) Would display 59.97