Beginner Intermediate Expert


Write a function that takes a list and an integer, lst and i, it deletes lst element with index i and returns it.

Example:

>>> t = ['po', 'ani', 'jo']
>>> delete_i(t, 0)
'po'
>>> t
['ani', 'jo']