- extend
[].extend
examples/lists/extend.py
names = ['Foo Bar', 'Orgo Morgo'] names.extend(['Joe Doe', 'Jane Doe']) print(names) # ['Foo Bar', 'Orgo Morgo', 'Joe Doe', 'Jane Doe']
names = ['Foo Bar', 'Orgo Morgo'] names.extend(['Joe Doe', 'Jane Doe']) print(names) # ['Foo Bar', 'Orgo Morgo', 'Joe Doe', 'Jane Doe']