Vidyalelo
Python · Q81

MCQs for Python Dictionaries: Exam

Programming · Python · question 81

Q81

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

A.
1
B.
A
Answer
C.
4
D.
Invalid syntax for get method

Answer: Option B

Solution

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