see also"classes and object-oriented programming,numbers ( )collections ( array the array module defines new object typearraythat works almost exactly like listexcept that its contents are constrained to single type the type of an array is determined at the time of creationusing one of the type codes shown in table table type codes type code description type minimum size (in bytes' ' ' ' ' ' ' ' ' ' ' ' -bit character -bit integer -bit unsigned integer unicode character -bit integer -bit unsigned integer integer unsigned integer long integer unsigned long integer single-precision float double-precision float char signed char unsigned char py_unicode short unsigned short int unsigned int long unsigned long float double or or or or or the representation of integers and long integers is determined by the machine architecture (they may be or bitswhen values stored as 'lor 'iare returnedthey're returned as long integers in python the module defines the following typearray(typecode [initializer]creates an array of type typecode initializer is string or list of values used to initialize values in the array the following attributes and methods apply to an array objectaitem description typecode itemsize append(xa buffer_info(type code character used to create the array size of items stored in the array (in bytesappends to the end of the array returns (addresslength)giving the memory location and length of the buffer used to store the array swaps the byte ordering of all items in the array from big-endian to little-endianor vice versa this is only supported for integer values byteswap(continues lib fl ff