fork download
  1. # Precedence of Operator
  2. # Right-left associativity of ** exponent operator
  3. # Output: 512
  4. print(2 ** 3 ** 2)
  5.  
  6. # Shows the right-left associativity of **
  7. # Output: 64
  8. print((2 ** 3) ** 2)
  9.  
  10. # Left-right associativity
  11. # Output: 3
  12. print(5 * 2 // 3)
  13.  
  14. # Shows left-right associativity
  15. # Output: 0
  16. print(5 * (2 // 3))
  17.  
Success #stdin #stdout 0.02s 9216KB
stdin
Standard input is empty
stdout
512
64
3
0