Append any value to the array using append method

suggest change
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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents