# basics variables

Order of Operations

Python follows the same order of operations you use in math class: ** first, then * / // %, then + -. You can use parentheses () to force a different order, just like in math:

print(2 + 3 * 4)
print((2 + 3) * 4)

prints:

14
20

Your turn: read three numbers a, b, c. Print the result of a + b * c.

💡 need a hint?

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