Answers for "how to compare byte string in python"

0

how to compare byte string in python

#make both of them str
var1 = b'hey'
var2 = b'hey'
print(if str(var1) == str(var2))
>> True
Posted by: Guest on March-23-2021

Code answers related to "how to compare byte string in python"

Python Answers by Framework

Browse Popular Code Answers by Language