It’s simple!
Python IDE Entries:
1 2 3 4 5 6 7 8 9 |
>>> s = "masnun" >>> s 'masnun' >>>s = s.encode() >>> s b'masnun' >>> s = s.decode() >>> s 'masnun' |
It’s quite interesting. Last night, when I was using urlopen to access the TinyURL API, I found that the data was being returned as bytes. I had to decode it.