मराठी

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

Advertisements
Advertisements

प्रश्न

Write the output of the following:

num1, num2 = 2, 3
num3, num2 = num1, num3 + 1
print (num1, num2, num3)
एका वाक्यात उत्तर

उत्तर

Output: Error as num3 is used in RHS of line 2 (num3, num2 = num1, num3 + 1) before defining it earlier.

shaalaa.com
Number
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Getting Started with Python - Exercise [पृष्ठ ११६]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×