CBSE Class 11 Computer Science Question 90 of 106

Python Fundamentals — Question 19

Back to all questions
19
Question

Question 19

What will the following code result into ?

n1, n2 = 5, 7
n3 = n1 + n2
n4 = n4 + 2
print(n1, n2, n3, n4)
Answer

The code will result into an error as in the statement n4 = n4 + 2, variable n4 is undefined.