0

What is the way of doing python mathematics? Left to right ??? OR right to left ???

28th Oct 2020, 5:25 AM
Naseem Ullah
Naseem Ullah - avatar
3 Respostas
+ 1
Hey there! Naseem Ullah in English we read left to right and solve maths left to right so does Python.
28th Oct 2020, 6:16 AM
Vatsal Sharma
Vatsal Sharma - avatar
+ 3
Do you read math from right to left OR left to right?
28th Oct 2020, 5:25 AM
Soheil
Soheil - avatar
0
If the operators have the same precedence they are done left to right with exception of power operator (**) - those are done right to left. See https://docs.python.org/3/reference/expressions.html#operator-precedence
28th Oct 2020, 9:51 AM
Volodymyr Chelnokov
Volodymyr Chelnokov - avatar