हिंदी

Give the output of the following when num1 = 4, num2 = 3, num3 = 2. num1 **= num2 + num3 - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Give the output of the following when num1 = 4, num2 = 3, num3 = 2.

num1 **= num2 + num3

टिप्पणी लिखिए

उत्तर

num1 **= num2 + num3

The above statement can be written as

num1 **= 5

num1 = num1 ** 5

num1 = 4 ** 5

num1 = 1024

Therefore, the output will be 1024.

shaalaa.com
Python Data Types
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Getting Started with Python - Exercise [पृष्ठ ११६]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 11
अध्याय 5 Getting Started with Python
Exercise | Q 7. c) | पृष्ठ ११६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×