Question: 1.) Write the funtions for the following in python ... a) A function called every other (1) that takes a list, I, and returns a
1.) Write the funtions for the following in python ...
a) A function called every other (1) that takes a list, I, and returns a list that contains every other element in I. Example: my_list-LO, -12, 4, 18, 9, 10, 11, -23) print (every_other (my_list) Output: [0, 4, 9, 11) b) A function called bigger_ten (1) that takes a list, I, and returns a list that contains all values in L greater than 10. Assume l has only numerical entries. Output: my_list - 10, -12, 4, 18, 9, 10, 11, -231 print (bigger_ten (my_11st)) [18, 111 c) A function called distance_mean (1) that takes a list, I, and returns a list that contains the difference between each of the values in land the average my_11st - 10, -12, 18, 9, 10, 11, -23) print (distance mean (my list) Output: [-2.125, -14.125, 1.875, 15.875, 6.875, 7.875, 8.875, -25.1251
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
