32 lines
655 B
Markdown
32 lines
655 B
Markdown
![]() |
---
|
||
|
id: 5ea9997bbec2e9bc47e94db4
|
||
|
challengeType: 11
|
||
|
videoId: z_qkqZS7KZ4
|
||
|
---
|
||
|
|
||
|
## Description
|
||
|
|
||
|
<section id='description'>
|
||
|
</section>
|
||
|
|
||
|
## Tests
|
||
|
|
||
|
<section id='tests'>
|
||
|
|
||
|
```yml
|
||
|
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
|
||
|
```
|
||
|
|
||
|
</section>
|