1. Write and test a function to meet this specification. (You only need to write the function; your instructor will test it). squareEach(nums) nums is a list of numbers. Modifies the list by squaring each entry. Should return the list of squared entries. (You only need to write the function; your instructor will test it). 2. Write and test a function to meet this specification. sumList(nums) nums is a list of numbers. Returns the sum of the numbers in a list. (You only need to write the function; your instructor will test it). 3. Write and test a function to meet this specification. toNumbers(strList) strList is a list of strings, each of which represents a number. Modifies each entry in the list by converting it into a number. It should return the list of numbers. (You only need to write the function; your instructor will test it).
1. Write and test a function to meet this specification. (You only need to write the function; your instructor will test it).
squareEach(nums) nums is a list of numbers. Modifies the list by squaring each entry. Should return the list of squared entries. (You only need to write the function; your instructor will test it).
2. Write and test a function to meet this specification.
sumList(nums) nums is a list of numbers. Returns the sum of the numbers in a list. (You only need to write the function; your instructor will test it).
3. Write and test a function to meet this specification.
toNumbers(strList) strList is a list of strings, each of which represents a number. Modifies each entry in the list by converting it into a number. It should return the list of numbers. (You only need to write the function; your instructor will test it).
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images