Advertisements
Advertisements
Question
Write the output of the following:
num1 = 4
num2 = num1 + 1
num1 = 2
print (num1, num2)One Line Answer
Advertisements
Solution
Output: 2, 5
shaalaa.com
Is there an error in this question or solution?
Write the output of the following:
num1 = 4
num2 = num1 + 1
num1 = 2
print (num1, num2)Output: 2, 5