I have read that in Python, a bytestring is a sequence of bytes
To completely understand the above statement, I have written the following code:
s = 'hello'
b = s.encode()
list(b)
The above code is returning following output:
[104, 101, 108, 108, 111]
My question is why b
here is returning sequence of decimal values instead of returning sequence of bytes?
Can you please help me understand this concept using some example?