Python Program to convert Bytes to string

bookmark

string1 = 'Welcome to JavaTpoint'  
print(type(string1))  
string2 = b'Welcome to JavaTpoint'  
print(type(string2))  


Output:
<class 'str'>
<class 'bytes'>