WeCodeAcademy
❮ list.append()list.insert() ❯

list.extend()

Adds all items of another iterable.

Group: List

Syntax

list.extend(iterable)

Example

Examplepython
Open in editor »

← All of Python Reference