English

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

Advertisements
Advertisements

Questions

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

num1 **= num2 + num3

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

num1 **= num2 + c

Short/Brief Note
Advertisements

Solution

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

Notes

Student can refer to the provided solution based on their preferred marks.

Python Data Types
  Is there an error in this question or solution?
Chapter 5: Getting Started with Python - Exercise [Page 116]

APPEARS IN

NCERT Computer Science [English] Class 11
Chapter 5 Getting Started with Python
Exercise | Q 7. c) | Page 116
NCERT Informatics Practices [English] Class 11
Chapter 3 Brief Overview of Python
Exercise | Q 4. c) | Page 52
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×