Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add element to list python

lst = ["f", "o", "o", "b", "a","r"]
lst.append("b")
print(lst) # ["f", "o", "o", "b", "a", "r", "b"]
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #add #element #list #python
ADD COMMENT
Topic
Name
5+5 =