Common data formats like JSON and YAML are typically parsed into a Python dictionary. This is because dictionaries in Python provide a way to store data in key-value pairs, which is similar to the structure of these data formats.
A. sequence - Incorrect. This is a general term that includes lists, tuples, etc. B. set - Incorrect. A set is an unordered collection of unique elements, which is not suitable for key-value pairs. C. dictionary - Correct. Dictionaries are used to store data in key-value pairs. D. list - Incorrect. Lists are ordered collections of items, which are not suitable for key-value pairs.
References:
Python Data Structures
JSON and YAML Parsing
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit