binary_str = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
How can I convert this binary data to hex data in python?
I tried like this but it's not working.
>>> hex(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'bytes' object cannot be interpreted as an integer