Mar-04-2024, 03:51 PM
I am new to python socket.py and while learning this library I got a question, answer to which I coundn't find in any resource.
I know that there is a number of ways to pass binary to sent() method. For example:
I know that there is a number of ways to pass binary to sent() method. For example:
socket.send(b"Hello world")or
socket.send("Hello world".encode())But is there a way to pass string as arguement to send() without converting it to binary?