Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language is Python, need help!! Due: Feb 24, 2020 08:59 am submit Instructions from your teacher: Prompt for a sequence of numbers, the last number

Language is Python, need help!! image text in transcribed
Due: Feb 24, 2020 08:59 am submit Instructions from your teacher: Prompt for a sequence of numbers, the last number being zero. Print the average of the numbers. If no data is entered (only a zero was entered), you can generate an error (division by zero). If no data is entered, print "Sequence Length is 0". Example Input Enter a Number (zero to quit): 1 Enter a Number (zero to quit): 7 Enter. a Number (zero to quit): 9 Enter a Number (zero to quit): 0 Example Output Average: 5.666666666666667 Example Input Enter a Number (zero to quit): 0

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions