Question: 15. Write a function called sumNumbers that accepts a list of numbers as a parameter and returns the sum of all of the numbers in
15. Write a function called sumNumbers that accepts a list of numbers as a parameter and returns the sum of all of the numbers in the list. The main program should: Ask the user to continue entering #s until they type END. You may assume the user will enter only numbers when asked. . Store the numbers they enter in a list. . Call the sumNumbers function and print the result NOTE: what happens if the first thing typed is END? 16. Suppose myStory contains a long string consisting of a number of sentences. Write Python code to print the number of sentences AND the number of words in myStory. Assume sentences must end assume there are no other periods within a sentence. Assume words are separated by a with a period and blank. [20, 100,88,40, 50,90] #write Python code to get rid of all scores below 60 in myList. 17. myList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
