0):
+ operator to concatenate two lists. Example:
Members
append
Parameters
| Parameter | Description |
|---|---|
item | required |
clear
extend
Parameters
| Parameter | Description |
|---|---|
items | iterable; required |
index
start and end are given, they restrict the range searched in the same manner as slicing.
Parameters
insert
Parameters
| Parameter | Description |
|---|---|
index | int; required The index the item will be at after insertion. If the index is out of range, it’s transformed into an effective index in the range from 0 to the list’s previous length, inclusive, in the same manner as for the start index of a slice operator. |
item | required The item. |
pop
index is specified, it removes and returns the last item in the list.
Parameters
| Parameter | Description |
|---|---|
i | int; default is -1 The index of the item. |
remove
Parameters
| Parameter | Description |
|---|---|
x | required The object to remove. |