Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a Python function that keeps prompting the user for even numbers by using a loop. Enter an odd number to terminate the loop. calculate

write a Python function that keeps prompting the user for even numbers by using a loop. Enter an odd number to terminate the loop. calculate the average of all the even numbers.
image text in transcribed
2. Write a Python function that keeps prompting the user for even numbers by using a loop. Enter an odd number to terminate the loop. Calculate the average of all the even numbers. (20 pts) Test case: input: 2, 4, 6, 8, 1, display 5

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

5. What information would the team members need?

Answered: 1 week ago

Question

When is it appropriate to use a root cause analysis

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago