Change the order of mathematical evaluation
Here we have a mathematical calculation involving 3 variables. Change the order of mathematical evaluations such that the subtraction is calculated first. Use parentheses to do so. The result should be 30.
a = 5
b = 10
c = 4
result = a * b - c
# result should be 30
print(result)
Python
Setting up Python environment...
Output