Answer:
Step-by-step explanation:
def insert(index, item, lyst):
if index == 0:
return [item] + lyst
if len(lyst) == 1:
return lyst[:index] + [item] + lyst[index:]
else:
return lyst[:index] + [item] + insert(0, lyst[index])
4.4m questions
5.7m answers