August 08, 2022
python byte string
> 'This is a string'
'This is a string'
> b'This is a string'
b'This is a string'
> 'This is a string'.encode()
b'This is a string'
Bytes string
b''
notation is used to specify a bytes string in Python.
Regular strings - ASCII Characters
Byte strings - array of byte variables (not a regular string)