Files
freeCodeCamp/curriculum/challenges/english/09-information-security/python-for-penetration-testing/developing-a-port-scanner.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

688 B

id, title, challengeType, videoId
id title challengeType videoId
5ea9997bbec2e9bc47e94db4 Developing a Port Scanner 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