Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a PYTHON function average_int_list that takes a list of integers and calculates and returns the average of all values in the list as a

Create a PYTHON function "average_int_list" that takes a list of integers and calculates and returns the average of all values in the list as a float. Dont use the built in sum function, write it yourself. Then write a PYTHON program method that uses "get_int_list_from_user" method to get a list of 7 numbers, then calls the "average_int_list" function to get the average then prints all values in the list that are greater than the average. Sample run: Enter next whole number: 3 Enter next whole number: 8 Enter next whole number: 4 Enter next whole number: 12 Enter next whole number: 13 Enter next whole number: 6 Enter next whole number: 9 Average: 7.857142857142857 8 12 13 9

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

More Books

Students also viewed these Databases questions