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]
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #add #element #python #list
ADD COMMENT
Topic
Name
6+6 =