b in python code example
Example 1: python b before string
# It means it's a byte string.
# Which means it'll just print b'string' if you try to print it out
string = b'Random string'
print(string)
string_without_b = string.decode()
print(string_without_b)
Example 2: b'string' python
>>> b'\xE2\x82\xAC'.decode('UTF-8')
'€'