Question: Write a function called addListNums ( ) that accepts a list of numbers. The function should return the sum of the first, third, and last
Write a function called addListNumsthat accepts a list of numbers. The function should return the sum of the first, third, and last item in the list. You may assume that the list that is passed to that function contains at least numbers in it For example, addListNums would return ie adds the first item in the list, to the third item, and the last item and returns the sum
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
