Advertisements
Advertisements
Question
Write the output of the following:
num1, num2 = 2, 3
num3, num2 = num1, num3 + 1
print (num1, num2, num3)One Line Answer
Advertisements
Solution
Output: Error as num3 is used in RHS of line 2 (num3, num2 = num1, num3 + 1) before defining it earlier.
shaalaa.com
Is there an error in this question or solution?
