CBSE Class 11 Informatics Practices Question 4 of 66

Dictionary — Question 4

Back to all questions
4
Question

Question 4

Assertion (A): Keys of the dictionaries must be unique.

Reasoning (R): The keys of a dictionary can be accessed using values.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

A is true but R is false.

Explanation
The keys of dictionaries in Python must be unique and immutable. Values in a dictionary can be accessed using their corresponding keys.