Back to quizzes
Dictionaries Quiz
Java / Loops | Medium | 15 questions
Question 1 of 15
4 free questions left
What will be the output of the following code: {1: 'a', 2: 'b'}[1]?
A
'a'
B
'b'
C
1
D
KeyError