Write a program to Add Element to a List


Topic: Write a program to Add Element to a List

Solution

animals = ['cat', 'dog', 'rabbit']
animals.append('guinea pig')
print('Updated animals list: ', animals)



List all Python Programs