Adding and removing elements

Report a typo

What will be the output of the following code?

my_list = [0, 1, 2, 1, 2]
my_list.append(0)
my_list.remove(2)
my_list.append(1)
my_list.remove(0)
print(my_list)
Select one option from the list
___

Create a free account to access the full topic