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)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)Create a free account to access the full topic