Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 215
Into which type of Python data structure should common data formats be parsed?
Answer options
- A. sequence
- B. set
- C. dictionary
- D. list
Correct answer: C
Explanation
The correct answer is C, as a dictionary is ideal for representing key-value pairs commonly found in data formats like JSON. Options A and D, sequence and list, are not specifically designed for key-value storage, while option B, set, is meant for unique items and lacks the structure needed for parsing data formats.