TypeError: sendto() takes 2 or 3 arguments (1 given) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

TypeError: sendto() takes 2 or 3 arguments (1 given)

I got an error when im trying to do the function send to, ¿Anyone knows why? while message != 'q': if message != '': envio = alias + ": " + message, server s.sendto(str(envio).encode('utf-8')) #por si quiere enviar mas mensajes tLock.acquire() message = input (alias + "-> ") tLock.release() time.sleep(0.2) shutdown = True

6th May 2018, 1:26 PM
Juan Antonio
Juan Antonio - avatar
0 Answers