QuestionQ213

Compute

Which data structure is produced when this Python code is run?

Question Image

  • A tuple
  • B dictionary
  • C set
  • D list
Explanation

json.load() parses the JSON object in the file into a Python dictionary. The resulting value contains key-value pairs enclosed in curly braces.

Community Discussion

No comments yet. Be the first to start the discussion!