पायथन में निम्नलिखित अभिव्यक्ति का परिणाम क्या होगा
What will be the result of the following expression in Python “2 ** 3 + 5 ** 2”?
A
65536
B
33
C
169
D
None of the above
Explanation
Let's break down the expression:
2 ** 3 + 5 ** 2
-
Exponentiation first (since
**has higher precedence):2 ** 3 = 85 ** 2 = 25
-
Now, perform the addition:
8 + 25 = 33
So, the result is 33.
The correct answer is (B) 33.
Correct Answer: B) 33