Vidyalelo
Python · Q37

MCQs for Python Dictionaries: Exam

Programming · Python · question 37

Q37

What will be the output of the following Python code snippet? a=1:"A",2:"B",3:"C" for i,j in a.items(): print(i,j,end=" ")

A.
1 A 2 B 3 C
Answer
B.
1 2 3
C.
A B C
D.
1:"A" 2:"B" 3:"C"

Answer: Option A

Solution

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