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'
string_without_b = string.decode()

Here is what the above code is Doing:
1. It’s creating a byte string
2. It’s printing the byte string
3. It’s decoding the byte string into a normal string
4. It’s printing the normal string