Python list.append() Method
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
Enjoying these tutorials?