Files
miyaliu666 3ea2fe4f77 feat(i18n,curriculum): add Bilibili ids for Chinese (#43564)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-10-01 09:54:12 +05:30

61 lines
601 B
Markdown

---
id: 5e7b9f140b6c005b0e76f07d
title: 'Web Services: JSON'
challengeType: 11
videoId: ZJE-U56BppM
bilibiliIds:
aid: 419491911
bvid: BV1r3411672w
cid: 377332928
dashedName: web-services-json
---
# --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