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