Files
freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-with-python/python-for-everybody/networking-using-urllib-in-python.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

638 B

id, challengeType, videoId
id challengeType videoId
5e7b9f0d0b6c005b0e76f075 11 7lFM1T_CxBs

Description

Tests

question:
  text: |
    What will the output of the following code be like?:
    ```python
    import urllib.request
    fhand = urllib.request.urlopen('http://data.pr4e.org/romeo.txt')
    for line in fhand:
        print(line.decode().strip())
    ```
  answers:
    - |
        Just contents of "romeo.txt".
    - |
        A header and the contents of "romeo.txt".
    - |
        A header, a footer, and the contents of "romeo.txt".
  solution: 1