Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python list append

#.append() is a function that allows you to add values to a list
sampleList.append("Bob")
print ("Bob should appear in the list:", sampleList)

#The output will be:
Bob should appear in the list: ['Bob']
Source by zerotomastery.io #
 
PREVIOUS NEXT
Tagged: #python #list #append
ADD COMMENT
Topic
Name
5+9 =