Question · Python course · Module 4: Data, APIs and Databases

Summary - JSON

What is the difference between json.load() and json.loads()?

Answer options

  • load() reads from a file, loads() reads from a string
  • loads() reads from a file, load() reads from a string
  • They are identical
  • load() is faster

You can check the correct answer by solving this task in the CodeWorlds game.