Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add element to python list

MyList = ["apple", "banana", "orange"]

MyList.append("raspberry")
# MyList is now [apple, banana, orange, raspberry]
 
PREVIOUS NEXT
Tagged: #add #element #python #list
ADD COMMENT
Topic
Name
8+1 =