Cisco
200-901 · Question #515
Which Python data type resembles JSON data structures?
The correct answer is B. dictionary. The Python data type that closely resembles JSON (JavaScript Object Notation) data structures is a dictionary. In JSON, data is represented as key- value pairs, and a JSON object is an unordered set of key-value pairs. Similarly, in Python, a dictionary is an unordered…
Understanding and Using APIs
Question
Which Python data type resembles JSON data structures?
Options
- Alist
- Bdictionary
- Cstring
- Dtuple
How the community answered
(36 responses)- A3% (1)
- B94% (34)
- D3% (1)
Explanation
The Python data type that closely resembles JSON (JavaScript Object Notation) data structures is a dictionary. In JSON, data is represented as key- value pairs, and a JSON object is an unordered set of key-value pairs. Similarly, in Python, a dictionary is an unordered collection of key-value pairs.
Topics
#Python#JSON#Data types#API data formats
Community Discussion
No community discussion yet for this question.