Question PRG-PY-0037
EasyWhat is the output of this program?
d = {"x": 1}
print(d.get("y", 0))
- A.
None
- B.
1
- 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?
d = {"x": 1}
print(d.get("y", 0))
None
1
Sign up free to see the answer and a step-by-step explanation.
0
Error