I have string that i received through Ethernet port and i have decoded it like this:
data, address = p1.recvfrom(1040)
text = data.decode('ascii')
stri = ''
for i in text:
stri = + ord(i)
Is there a way that doesn't require for loop, that can give me same string right away?