Python Variable MCQs

Question 6: What is the output of the following code?

>>> x=100
>>> y=100
>>> id(x) == id(y)

Question 7: Which of the following would give a syntax error?

Question 8: Which of the following statements are correct?

Question 9: What will be the output of the following code?

x=10
y=20
x, y = y,x
print(x,y)

Question 10: Which of the following symbols stores the result of the last evaluation?