a = ['a', 'b', 'c', 'd']
def remove_element(list_,index_):clipboard = []for i in range(len(list_)):if i is not index_:clipboard.append(list_[i])return clipboard
print(remove_element(a,2))
>> ['a', 'b', 'd']
a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
# remove the element at index 3a[3:4] = []# a is now [0, 1, 2, 4, 5, 6, 7, 8, 9]
# remove the elements from index 3 to index 6a[3:7] = []# a is now [0, 1, 2, 7, 8, 9]