Choose the correct option according to python version 2.7 what does this expression evaluates to:2**10
Answers
Answered by
1
That 2 will be multiplex 10 times.
That is 2 raise to the power 10
That is 2 raise to the power 10
Answered by
1
Answer:
In Python version 2.7, '**' is the operator for "power of". It is called Exponentiation.
Hence , 2** 10 = 1024
Step-by-step explanation:
- The '**' operator in Python raises the number on it's left to the power of the exponent of it's right.
- That is, in the expression 5 ** 4 , 5 is being raised to the 4th power. In mathematics, we often see this expression rendered as , that is 5 is being multiplied by itself 4 times.
- Similarly, the meaning of the given expression 2**10 is 2 is being multiplied by itself 10 times.
hence , 2**10 = 2×2×2×2×2×2×2×2×2×2 = 1024
Similar questions