Please help with questions 1-4 (using python programming).
Image transcriptions
Programming Problems Each of these problems should be solved in the starter file available on the course website. They should be submitted to the blackboard Most programming problems may also be checked by running the starter file, which calls the function testAll() to run test cases. #1 - countFirstLetter(L, letter) Write a function countFirstLetter(L, letter) that counts and returns the number of elements whose first letter is the one given. You may assume the list elements are strings. e.g., countFirstLetter(["dog", "daisy", "cat", "dandelion"], "d") returns 3 #2 - middleAppend(L, item) Write a function middleAppend(L, item) which finds the middle of the list (use integer division), inserts a new value at that location in the list, and returns the updated list. e.g., middleAppend([1, 2, 3], 4) modifies the list to be [1, 4, 2, 3] #3 - odds(L) Write a function odds(L) that returns a new list of only the odd-indexed items. Note that this is not the odd numbers- it is the odd indexes! e.g., [0, 1, 2, 3, 4, 5] returns [1, 3, 5], and [1, 2, 3, 4, 5, 6] returns [2, 4, 6] #4 - removeEvens(L) Write a function removeEvens(L) that removes the even-indexed items of the list, leaving a list of only the original odd-indexed items remaining in L. e.g., [0, 1,2,3,4,5] modifies the list to be [1,3,5] while [1,2,3,4,5,6] becomes [2,4,6] Note: this is tricky because L is changing; you should check for aliasing issues. You can assume there is only one of each value in the list.
ongue vel
m risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec
amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac murilgue vel laoreetitur laoreecng elit. Nam0ec faorec alisuec aliquet.se vel0fficitur laoreet. Nam risus ante,csum dollentgue vel laoreet ac, dictum vitaellenon, ultrionsusonsus ante, decsumsqu
pulv
x
ll
rilusce dui lecfacilisicamet, consectetur adipiscinlpulvinar tortor nec facilisis. Peor nea. Fusce dui lectus, cofslsxinlac,
pulv
ofslslffic
ce
rilcingamecctum vitae odio. Donec aliicac,fur laorfonec aliqla. Fusce dui lectus, congue vel laoor neipiscing elit. Nam l0sfslsxsls,ce dui lectus, cfslsxsls,slac,
pulv
ofsxs,e vlslslF
F
rilsus ante, damecuscrem0inlconsector nea. Fusce dui lectus, co0sfslsxsls,sum dolor sit amet, confslsxsls,slac,
pulv
ofsxs,e vlslslF
ctum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, c
usce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor
iscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequa
443,685 students got unstuck by Course
Hero in the last week
Our Expert Tutors provide step by step solutions to help you excel in your courses