Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions