Computer Science, asked by arsh0308, 13 days ago

Define precedence and associativity in Python.

Answers

Answered by xXItzSujithaXx34
12

Explanation:

Associativity of Python Operators

These operators have the same precedence. When two operators have the same precedence, associativity helps to determine the order of operations. Associativity is the order in which an expression is evaluated that has multiple operators of the same precedence.

Answered by krprem1989
23

Answer:

These operators have the same precedence. When two operators have the same precedence, associativity helps to determine the order of operations. Associativity is the order in which an expression is evaluated that has multiple operators of the same precedence.

Operator precedence: It dictates the order of evaluation of operators in an expression. Associativity: It defines the order in which operators of the same precedence are evaluated in an expression. Associativity can be either from left to right or right to left.

Similar questions