Answers for "how to add list to array in python"

1

how to add to the end of an array python

array = [1 , 2, 3]
print(array)

array.append(4)
print(array)

#[1 ,2 ,3]
#[1 ,2 , 3, 4]
Posted by: Guest on June-22-2020

Code answers related to "how to add list to array in python"

Python Answers by Framework

Browse Popular Code Answers by Language