Files
freeCodeCamp/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/web-services-json.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

53 lines
728 B
Markdown

---
id: 5e7b9f140b6c005b0e76f07d
title: 'Web Services: JSON'
challengeType: 11
isRequired: true
videoId: ZJE-U56BppM
---
## Description
<section id='description'>
</section>
## Tests
<section id='tests'>
```yml
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]
solution: 2
```
</section>