a bytes-like object is required, not 'str' | How to convert bytes to string in Python

preview_player
Показать описание
#byteerror #xpertji
a bytes-like object is required, not 'str'
How to convert bytes to string in Python tutorial in hindi
It is very simple to convert it let see through the example

following is the byte string.

result = b"Xpertji is a best youtube channel"
print(type(result))

#Following code will convert the byte string into regular string.
print(type(result))

Share, Support, Subscribe!!!
Рекомендации по теме