Say I have 8 bits
01010101
which equals the byte
u
But I what I actually have is 8 binaries(well, integers). How do I convert these 8 binaries to the corresponding byte?
I'm trying
byte = int(int('01010101'), 2)
byte = chr(byte)
byte = bytes(byte)
But this gives me a bytes array instead of a single byte...