Program - Adding Element to a List


Topic: Program - Adding Element to a List

Solution

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



List all Python Programs