my_list = [10, 'bw']
print(my_list)
# append() adds an element to the end of the list
my_list.append('abc')
print(f'After append: {my_list}')
#pop removes the element at the given index from the list
# 'bw', which is at index 1, is removed and 'abc' is now at index 1
my_list.pop(1)
print(f'After pop: {my_list}')
#remove() removes the first element with a given value. 'abc' is removed and now the list has one element
my_list.remove('abc')
print(f'After remove: {my_list}')
To embed this project on your website, copy the following code and paste it into your website's HTML: