iNTERFACEWARE Products Manual > Learning Center > Learning Python > Working With Values and Variables > Arithmetic Operations > Order of Operations |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
In an expression, arithmetic operations are normally performed in the following order:
You can use () characters, known as parentheses, to force arithmetic operations to be performed in an a particular order in an expression. Operations inside parentheses are always performed first. For example:
If parentheses are contained inside one another in an expression, the operations in inner parentheses are performed first:
|