Web Analytics

Python list.append() Method

List Method โ€ข Add Item

The append() method appends an element to the end of the list.

Syntax

list.append(elmnt)

Parameters

Parameter Description
elmnt Required. An element of any type (string, number, object etc.)

Return Value

None. The list is modified in place.

Example

Using the append() method:

Output
Click Run to execute your code

Related Functions