I'm trying to convert a hex string 'aa' to binary as following:
a = bin(int('aa',16))
But it gives me the error of:
Traceback (most recent call last):
File "<pyshell#23>", line 1, in <module>
a = bin(int('aa',16))
TypeError: bin(QTextStream): argument 1 has unexpected type 'int'
Can anyone explain what is the problem with the conversion?