I thought I understood BODMAS (BIDMAS in the UK). I'm unsure why the following expression evaluates in a different order:
a = 8*4//3
I expected 'division' to take place first, giving a = 8*1
- instead 'multiplication' occurs first, giving a = 32//3 = 10
b = 9//3*7
Example b
evaluates to 21, as per BIDMAS rule.
It seems that python executes an expression from left to right and treats 'division' and 'multiplication' as equivalent. What's happening? Thanks in advance, Faz.