Files
freeCodeCamp/curriculum/challenges/chinese/09-information-security/python-for-penetration-testing/developing-a-port-scanner.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

655 B

id, challengeType, videoId
id challengeType videoId
5ea9997bbec2e9bc47e94db4 11 z_qkqZS7KZ4

Description

Tests

question:
  text: |
    What is the main difference between the `.connect()` and `.connect_ex()` methods?

  answers:
    - |
      There is no difference between the two methods.
    - |
      If there is an error or if no host is found, `.connect()` returns an error code while `.connect_ex()` raises an exception.
    - |
      If there is an error or if no host is found, `.connect()` raises an exception while `.connect_ex()` returns an error code.
  solution: 3