Computer Science, asked by Hercules1544, 11 months ago

What is the associativity of Python's ** operator?

Answers

Answered by SnehaG
2

Associativity is the order in which an expression is evaluated that has multiple operator of the same precedence. Almost all the operators have left-to-right associativity.

Answered by fiercespartan
4

** operation in python stands for exponents.

2 ** 3 = 8

EXAMPLES:

______________________

def power(base, exponent):

   return base ** exponent

power(2,3)

OUTPUT - 8

The syntax of this operator is:

x**y:

x is the base and y is the exponent. It multiples x, y times.

Similar questions