The data type of incoming and outgoing data should be the same at all points of the program to make it consistent. For this program the data type is array.array.