Use decode
:
>>> print(b'hello'.decode())
hello
More Related Contents:
- Finding and counting the frequency of known pairs of words in multiple files [closed]
- How to handle special cases in my Python code?
- User input integer list [duplicate]
- Convert bytes to a string
- How can I concatenate str and int objects?
- Which is the preferred way to concatenate a string in Python?
- TypeError: not all arguments converted during string formatting python
- String formatting in Python 3
- Find column whose name contains a specific string
- Pandas Extract Number from String
- How to convert ‘binary string’ to normal string in Python3?
- What’s the difference between str.isdigit, isnumeric and isdecimal in python?
- Extract Number from String in Python
- Why are str.count(”) and len(str) giving different output?
- Python – difference between two strings
- How to match any string from a list of strings in regular expressions in python?
- Most pythonic way to interleave two strings
- Python 3.1.1 string to hex
- Count number of words per row
- How to explain the str.maketrans function in Python 3.6?
- What is a clean way to convert a string percent to a float?
- How can I split a string of a mathematical expressions in python?
- Why do numbers in a string become “x0n” when a backslash precedes them?
- can only concatenate str (not “bytes”) to str
- What’s the difference between str.isdigit(), isnumeric() and isdecimal() in Python?
- Deleting consonants from a string in Python
- What is internal representation of string in Python 3.x
- Finding the position of a word in a string
- Why are str.count(”) and len(str) giving different outputs when used on an empty string?
- Convert bytes to a string in python 3