CBSE Class 11 Informatics Practices Question 2 of 66

Dictionary — Question 2

Back to all questions
2
Question

Question 2

Assertion (A): Dictionaries are enclosed within curly braces { }.

Reasoning (R): The key-value pairs are separated by commas (,).

  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

Both A and R are true but R is not the correct explanation of A.

Explanation
Dictionaries in Python are enclosed within curly braces {}, where each key is separated from its corresponding value by a colon (:), and different key-value pairs are separated by commas.