Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
append
append
Add an item to the end of the list.
Python 3.13
list
.
append
(
x
)
Examples
Python 3.13
>>
>
my_list
=
[
1
,
2
]
>>
>
my_list
.
append
(
3
)
>>
>
print
(
my_list
)
[
1
,
2
,
3
]