Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[10 marks Write a Python function called fake_average (aList) that returns the average of the smallest and largest values in alist. For example: take




 

[10 marks Write a Python function called fake_average (aList) that returns the average of the smallest and largest values in alist. For example: take average ((2, 1, 3, 51) should return the value 3 (the average of 1 and 5) take average ((1, 1, 1, 1, 21) should return the value 1.5 (the average of 1 and 2) take average ((5, 5, 5, 5, 5, 51) should return the value 5 (the average of 5 and 5) Submission instructions Your program must include a comment at the top with your name and the question number. Your file name should be final_q3_INITIAL_LASTNAME.sb3 (eg., if your name is Rob Alen, your submission would be final_q3_R_Allen.py)

Step by Step Solution

3.45 Rating (171 Votes )

There are 3 Steps involved in it

Step: 1

This is the code to compute the average The function of the various ... 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

Data Structures and Algorithms in Python

Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser

1st edition

1118290275, 1-118-54958-2, 978-1118290279

More Books

Students also viewed these Databases questions

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

Which kinds of advertising in which media influence you most? Why?

Answered: 1 week ago