Files
freeCodeCamp/curriculum/challenges/italian/07-scientific-computing-with-python/python-for-everybody/web-services-json.md
Nicholas Carrigan (he/him) f25e3e69f8 feat: enable new langs (#42491)
Enable italian and portuguese
2021-06-15 13:19:18 +05:30

533 B

id, title, challengeType, videoId, dashedName
id title challengeType videoId dashedName
5e7b9f140b6c005b0e76f07d Web Services: JSON 11 ZJE-U56BppM web-services-json

--question--

--text--

What will the following code print?:

import json
data = '''
  [
    { "id" : "001",
      "x" : "2",
     "name" : "Quincy"
    } ,
    { "id" : "009",
      "x" : "7",
      "name" : "Mrugesh"
    }
  ]
'''
info = json.loads(data)
print(info[1]['name'])

--answers--

Quincy


Mrugesh


001


009


[Error]

--video-solution--

2