Files
freeCodeCamp/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/web-services-json.md
Oliver Eyton-Williams 0bd52f8bd1 Feat: add new Markdown parser (#39800)
and change all the challenges to new `md` format.
2020-11-27 10:02:05 -08:00

56 lines
503 B
Markdown

---
id: 5e7b9f140b6c005b0e76f07d
title: 'Web Services: JSON'
challengeType: 11
videoId: ZJE-U56BppM
---
# --question--
## --text--
What will the following code print?:
```python
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