socket enviar cadena python

import socket
socketToSendTo = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
socketToSendTo.send(b"Hello World") # send bytes but you can decode to read as string when recieving
Determined Dugong