# test construction of bytes from different objectsfromarrayimportarray# tuple, list, bytearrayprint(bytes((1,2)))print(bytes([1,2]))print(bytes(bytearray(4)))# arraysprint(bytes(array('b',[1,2])))print(bytes(array('h',[1,2])))print(bytes(array('I',[1,2])))