- append
[].append
examples/lists/append.py
names = ['Foo', 'Bar', 'Zorg', 'Bambi'] print(names) # ['Foo', 'Bar', 'Zorg', 'Bambi'] names.append('Qux') print(names) # ['Foo', 'Bar', 'Zorg', 'Bambi', 'Qux']
names = ['Foo', 'Bar', 'Zorg', 'Bambi'] print(names) # ['Foo', 'Bar', 'Zorg', 'Bambi'] names.append('Qux') print(names) # ['Foo', 'Bar', 'Zorg', 'Bambi', 'Qux']