+ 1
In which order, Algebraic expression is executed in Python. (like a-b+c*d÷e+f) Does BODMAS follow in Python???
3 Respuestas
+ 5
This is called operator precedence, and can be seen in the python docs:
https://docs.python.org/3/reference/expressions.html
then go to section: 6.17. Operator precedence
+ 2
I'm not sure about whether ÷ operator exists, but for other arithmetic operations, you can refer the table in the following page
https://www.tutorialspoint.com/python3/operators_precedence_example.htm