Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python push into array if not exists

other_array=[1,2,3]
myarray=[1,2]
for item in other_array:
    if not item in myarray:
        myarray.append(item)
 
PREVIOUS NEXT
Tagged: #python #push #array #exists
ADD COMMENT
Topic
Name
4+8 =