SyntaxFix
Write A Post
Hire A Developer
Questions
You had it nearly right in the last line. You want
str(bytes_string, 'utf-8')
because the type of bytes_string is bytes, the same as the type of b'abc'.
bytes_string
bytes
b'abc'