Make connection

Report a typo

Read through the following code and write a command initiating the connection with the given address in one line.

import socket

my_sock = socket.socket()
port = 6666
hostname = 'hadesworld.org'

Tip: Don't forget to put your address elements in a tuple.

Enter a short text
___

Create a free account to access the full topic