KnowledgeBoat Logo
|

Informatics Practices

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.

Python Dictionaries

1 Like

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.

Answered By

2 Likes


Related Questions