Answers for "python array append array end"

5

append item to array python

data = []
data.append("Item")

print(data)
Posted by: Guest on May-08-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language