#!/usr/bin/python3 # -*- coding: utf-8 -*- import socket server_port = 50002 server_name = "127.0.0.1" client_socket = socket.socket() client_socket.connect((server_name, server_port)) while True: sentence = input('Input lowercase sentence: (or "quit" to quit)') client_socket.send(sentence.encode()) modified_sentence = client_socket.recv(1024) print("From Server:", modified_sentence.decode()) if sentence == "quit": break client_socket.close()