Question PRG-PY-0018
HardWhat is the output of this program?
a = [1, 2]
b = [1, 2]
print(a == b, a is b)
- A.
False True
- B.
False False
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What is the output of this program?
a = [1, 2]
b = [1, 2]
print(a == b, a is b)
False True
False False
Sign up free to see the answer and a step-by-step explanation.
True True
True False