Number of users

Report a typo

There is a JSON file users.json. The file has already been created and filled with data.

It has the following structure:

{
  "users": [
    {
      "name": "John",
      "last_name": "Doe",
      "age": 33
    },
    ...
  ]
}

Find out how many users are defined in this file and print this number.

Note that the json module has already been imported, you don't need to import it again!

Tip: Convert the JSON file to a dictionary and get the size of the list of users.

Write a program in Python 3
# write your code here
___

Create a free account to access the full topic