Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add array in python

theArray = []

theArray.append(0)
print(theArray) # [0]

theArray.append(1)
print(theArray) # [0, 1]

theArray.append(4)
print(theArray) # [0, 1, 4]
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #add #array #python
ADD COMMENT
Topic
Name
3+8 =