from socket import * #serverName ='hostname' # You have to put here the name of the host where the server is running serverName ='aragorn.elo.utfsm.cl' # You have to put here the name of the host where the server is running serverPort = 47204 clientSocket = socket(AF_INET, SOCK_STREAM) # to see the Socket API, go to https://docs.python.org/3/library/socket.html clientSocket.connect((serverName,serverPort)) sentence = input('Input lowercase sentence: ') clientSocket.send(sentence.encode()) modifiedSentence = clientSocket.recv(1024) print ('From Server:', modifiedSentence.decode()) clientSocket.close()