Question: Change the following code into a function. It should take the list and return a list of the values at the even indicies. Change the
Change the following code into a function. It should take the list and return a list of the values at the even indicies.

Change the following code into a function. It should take the list and return a list of the values at the even indicies. Save & Run Load History 1 numbers = [0,1,2,3,4,5,6,7,8,9,10] 2 evenlist = [] 3 for index in range(0, len(numbers),2): 4 evenlist = evenList + [numbers[index]] 5 print(evenList) 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
