Python List Append Method

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.

Example Usage:

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.

More Information:

The official documentation for append() can be found here

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.