Question: 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.
write a Python function that keeps prompting the user for even numbers

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!