Code
host = "127.0.0.1"
port=4446
from socket import *
s = socket(AF_INET, SOCK_STREAM)
s.bind((host,port))
s.listen(1)
print("Listening for connections...")
q,addr = s.accept()
data = input("Type something in")
q.send(data)
s.close
Error
TypeError:'str' does not support the buffer interface
So I know that there are hundreds of questions on here about this error but I still cant think up a solution, can one of you guys help me out? :(