Skip to content
Sign upLog in
How To Make A Chat In Python
Profile icon
CodingElf66

Hi everyone! Does anyone know how to make a chat in Python? I tried to search it up and understand the code, but there is always something wrong. They give me server.py and client.py, but my main.py is empty, the code doesn't work. Does anyone know how to make it? Thank you!

You are viewing a single comment. View All
Answered by ruiwenge2 [earned 5 cycles]
View Answer
Profile icon
CodingElf66

@ruiwenge
, I tried running it as the website told me to, and I got this error:

connect.send("You are connected from:" + str(addr))
File "main.py", line 16, in <module> connect.send("You are connected from:" + str(addr)) TypeError: string argument without an encoding
Profile icon
ruiwenge2