Learn Before
Concept
Order of Operations
The order of operations in Python is as follows:
- Parenthesis: ()
- Exponentiation: **
- Multiplication and Division: *, /, //, %
- Addition and Subtraction: +, -
If operators have the same priority, they are evaluated left to right, except for exponentiation which is evaluated right to left.
0
2
Updated 2020-09-03
Contributors are:
Who are from:
Tags
Data Science