A dictionary in Python stores:
-
A
Only values
-
B
Key-value pairs
Correct answer
-
C
Only keys
-
D
Only lists
Correct answer
B. Key-value pairs
11 views
Explanation
A dictionary stores key-value pairs. Keys must be unique and immutable.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ