1.

Which of the following operators has its associativity from right to left?(a) +(b) //(c) %(d) **This question was posed to me during an interview.The question is from Precedence and Associativity topic in chapter Precedence and Associativity, Bitwise & Boolean of Python

Answer»

Correct answer is (d) **

Easy EXPLANATION - All of the OPERATORS shown above have associativity from LEFT to right, except exponentiation OPERATOR (**) which has its associativity from right to left.



Discussion

No Comment Found

Related InterviewSolutions