A function deletes an item of a list by its index, and returns the new length. It is called twice, and each result is printed on the same line.
def remove_at(items, i):
del items[i]
return len(items)
data = [10, 20, 30]
print(remove_at(data, -1), end=" ")
print(remove_at(data, 2), end=" ")
print(data)
What happens when the program runs?