how to remove b in front of python string

str_object = b'Python Pool'
print(str_object)                   # => b'Python Pool'
str_object = str_object.decode()
print(str_object)                   # => Python Pool

Here is what the above code is Doing:
1. We create a byte string object.
2. We print the object.
3. We decode the object into a string.
4. We print the object.

The output of the above code is:

b’Python Pool’
Python Pool

As you can see, the first print statement prints the byte string object. The second print statement prints the string object.