freeCodeCamp/curriculum/challenges/italian/07-scientific-computing-wit.../python-for-everybody/web-services-json.md

61 lines
598 B
Markdown

---
id: 5e7b9f140b6c005b0e76f07d
title: 'Servizi Web: JSON'
challengeType: 11
videoId: ZJE-U56BppM
bilibiliIds:
aid: 419491911
bvid: BV1r3411672w
cid: 377332928
dashedName: web-services-json
---
# --question--
## --text--
Cosa scriverà il seguente codice?
```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