how to delete from alist using index code example
Example 1: how to remove an item from a certain index in python
arr = [0, 1, 2, 3, 4]
del arr[1]
# arr is now equal to [0, 2, 3, 4]
Example 2: python list remove at index
a = ['a', 'b', 'c', 'd']
a.pop(1)
# now a is ['a', 'c', 'd']