Advertisements
Advertisements
प्रश्न
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = num1 ** (num2 + num3)
print (num1)
टीपा लिहा
Advertisements
उत्तर
num1 = num1 ** (num2 + num3)
The above statement will be executed as per the following steps.
num1 = 4 ** (3 + 5) = 4 ** 5 = 1024
Therefore, print(num1) will give the output 1024.
shaalaa.com
Python Data Types
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
