Vidyalelo
Python · Q68

MCQs for Python Dictionaries: Exam

Programming · Python · question 68

Q68

What will be the output of the following Python code snippet? a=1:"A",2:"B",3:"C" print(a.get(5,4))

A.
Error, invalid syntax
B.
A
C.
5
D.
4
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board