Files
freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-with-python/python-for-everybody/networking-write-a-web-browser.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

809 B

id, challengeType, videoId
id challengeType videoId
5e7b9f0c0b6c005b0e76f073 11 zjyT9DaAjx4

Description

Tests

question:
  text: |
    What does the following code create?:

    ```py
    import socket

    mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    mysock.connect(('data.pr4e.org', 80))
    cmd = 'GET http://data.pr4e.org/romeo.txt HTTP/1.0\r\n\r\n'.encode()
    mysock.send(cmd)

    while True:
        data = mysock.recv(512)
        if len(data) < 1:
            break
        print(data.decode(),end='')
    mysock.close()
    ```

  answers:
    - |
        A simple web server.
    - |
        A simple email client.
    - |
        A simple todo list.
    - |
        A simple web browser.
  solution: 4