From your provided calculation it is not clear if you will use different variables in it or if you want to evaluate just this one particular equation.
If you want to compute just this equation, compute "(3.3 + 4.8 * 6.0) - 2.0" because you do not really need calculator for 4/2. So simply:
result = 3.3 + 4.8 * 6.0 - 2.0
print(round(result, 2)) #round() to "render" floating-point error
But if it will be used many times for different variables, you should define a function, e.g. (suppose all numbers in the equation are variables):
def eq_evaluation(a, b, c, d, e):
return round((a + b * c - d / e), 2)
Also wildcard import (from package import *
) is not a best practice in python. See for example: This question about it.