English

Write the output of the following: num1, num2 = 2, 6 num1, num2 = num2, num1 + 2 print (num1, num2) - Computer Science (Python)

Advertisements
Advertisements

Question

Write the output of the following:

num1, num2 = 2, 6
num1, num2 = num2, num1 + 2
print (num1, num2)
One Line Answer
Advertisements

Solution

Output: 6, 4

shaalaa.com
  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 5. b) | Page 116
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×