For this exercise the following is the correct code:
#Write your function here def remove_middle(lst, start, end): return lst[:start] + lst[end+1:] #Uncomment the line below when your function is done print(remove_middle([4, 8, 15, 16, 23, 42], 1, 3))
Maybe I missed something but I dont understand what the parameter of “1st” is doing in this code specifically as well as the “start” and “end”. Maybe I’ve missed something, but im having a hard time understanding as whole what’s going on here. I get what the code is doing, that is simple but what is the parameter of 1st, start, and end doing exactly in this code exactly do get the results. In previous exercises I remember assigning a variable with to a function with listed parameters. I dont how it works here at all. What am I not seeing?