Array Modules

array

Compact homogeneous mutable sequences with numeric or character type codes. Unlike lists, elements must fit the selected representation; itemsize and byte order can depend on the platform.

Formal Syntax & Structure

python syntaxpython
array

Return Value

module

Module object available through import.

Working Example

Example Snippetpython
import arraya=array.array("i",[1,2]); a.append(3)print(a.tolist())
Python Reference