how to remove b in front of python string

Solutions on MaxInterview for how to remove b in front of python string by the best coders in the world

showing results for - "how to remove b in front of python string"
Emil
11 Feb 2019
1str_object = b'Python Pool'
2print(str_object)                   # => b'Python Pool'
3str_object = str_object.decode()
4print(str_object)                   # => Python Pool
5