Last answered:

08 Apr 2024

Posted on:

31 Mar 2024

0

Resolved: Power operator sequence

**In example - It has to be right operand to the power of left operand, right?

1 answers ( 1 marked as helpful)
Instructor
Posted on:

08 Apr 2024

0

Hi Meenakshi!

Thanks for reaching out!

In the expression 5 ** 3, the ** operator is used for exponentiation in Python, where 5 is the base and 3 is the exponent. This means 5 is raised to the power of 3, not the other way around. 

Hope this helps.

Best,

Ivan

Submit an answer