my_array = array('i', [1,2,3,4,5]) my_array.append(6) # array('i', [1, 2, 3, 4, 5, 6])
Note that the value 6 was appended to the existing array values.
6