Skip to content

Python code snippet – How to remove b in front of string?

str_object = b'Python Pool'
print(str_object)                   # => b'Python Pool'
str_object = str_object.decode()
print(str_object)                   # => Python Pool
See also  How to use xor in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.