Categories
Python

Python: Encoding and Decoding Strings as Bytes

It’s simple!

Python IDE Entries:

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.