# basics variables

Doing Math: + - * /

Python can do math right in your code using arithmetic operators: + add, - subtract, * multiply, / divide. Division with / always gives back a decimal:

print(7 + 2)
print(7 / 2)

prints:

9
3.5

Your turn: read two numbers, a and b. Print the result of a + b, then a * b, each on its own line.

💡 need a hint?

pyb-var-arithmetic.py🔒 given lines are locked — write your code in between
loading...