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 www.programiz.com #
 
PREVIOUS NEXT
Tagged: #add #element #python #list
ADD COMMENT
Topic
Name
5+4 =