title: List Append Method
List Append Method
There are many methods for lists, you can explore all of them by typing
help(list) in your python console.
One of them is the
append() function which, as the name says, appends/adds the argument to the end of the given list.
words = ["I", "love", "Python"] words.append("very much") print(words)
['I', 'love', 'Python', 'very much']
As you might have noticed the element
"very much" is appended to the list.
The official documentation for
append() can be found here