Files
freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-with-python/python-for-everybody/web-services-json.md
Randell Dawson 94f0cf0ef8 chore(learn): Remove remaining isHidden keys from frontmatter (English and Chinese challenges) (#39809)
* fix: remove isHidden key from tool template

* fix: removed isHidden key from English challenges

* fix: remove isHidden key from Chinese challenges
2020-10-08 14:18:47 +02:00

683 B

id, challengeType, videoId
id challengeType videoId
5e7b9f140b6c005b0e76f07d 11 ZJE-U56BppM

Description

Tests

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