0

Operators with the same precedence are evaluated in which manner?

Python

3rd Apr 2019, 10:55 AM
Robert Mullock
Robert Mullock - avatar
5 Answers
+ 4
From left to right I believe.
3rd Apr 2019, 11:06 AM
Sonic
Sonic - avatar
+ 2
As you do in maths, the leftmost first then continue to right
3rd Apr 2019, 11:09 AM
Maneren
Maneren - avatar
+ 1
I don't think there's a general rule that applies to all operators. 2**3**2 will be 2**9, not 8**2
3rd Apr 2019, 11:16 AM
Anna
Anna - avatar
0
But you will write it like 232 irl. And yeah this is little bit strange as it is treated like whet you count with polynoms you also treat then like one thing and not like many, so it is here
3rd Apr 2019, 11:30 AM
Maneren
Maneren - avatar