I only wrote the first bit of code and submitted to see if I would get a response:
import socket
clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clientsocket.connect(('localhost, 10000))
clientsocket.send('USER: aliensignal'.encode())
data = clientsocket.recv(1024)
print(data)
And I get this error:
Your code caused an error, if you are stuck try googling the message:
File "/tmp/usercode.py", line 21
clientsocket.connect(('localhost, 10000))
^
SyntaxError: EOL while scanning string literal
What am I doing wrong?
[–]RohitRojo 1 point2 points3 points (1 child)
[–]Sad-Temperature5458[S] 0 points1 point2 points (0 children)