Account
Categories

Exponentiation Operator


Definition:

The Exponentiation Operator (**) is used to raise one value to the power of another. These values are called operands.

It helps in performing mathematical calculations in programs or webpages.

Syntax:

result = left_operand ** right_operand

Example:

a = 2
b = 3
exp = a ** b
print("The power is:", exp)

Output: