Answered step by step
Verified Expert Solution
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 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started