Python List append() Method

The list.append() method in Python adds or appends an item to the end of the list.

Syntax

Parameter

x: It is a required parameter that represents an element of any type (string, number, object etc.).

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This