Snippets Collections
# animals list
1.animals = ['cat', 'dog', 'rabbit']

# list of wild animals
2.wild_animals = ['tiger', 'fox']

# appending wild_animals list to the animals list
3.animals.append(wild_animals)

4.print('Updated animals list: ', animals)                                
                                
bookmark
dashboard

Tue Apr 21 2020 06:29:54 GMT+0000 (UTC) https://www.programiz.com/python-programming/methods/list/append

#python #python #lists #add

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension