In python, you should write mathematical operations, in the way exactly as same as the one you use in calculators, in order to gain the correct answer. The boundaries provide the highest dominance over any other operations outside the bracket. The exponential expression come next, and then come multiplication and division. Addition and subtraction come the last. This means, you always have to include brackets in operations you want to be solved primarily, in order to extract the correct answer. If more than one calculation of same type are written adjacently, the one that is written first is solved primarily.
- Boundaries (calculations inside brackets)
- Exponential expressions
- Multiplication and division
- Addition and subtraction
*2 or more same type operation : always solve from left to right