Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
list
#1
Define the get_funny_average() function which is passed a list of numbers as a parameter and returns the average of some of the numbers in the parameter list. The function returns the average of the remaining numbers (rounded to 1 decimal place) after all the following have been excluded from the parameter list of numbers (if they exist in the list):

all zeroes,
all negative numbers,
and
the two smallest positive numbers

Could someone explain to me how would I go about this without giving the code as I need to abide by the rules
Reply


Messages In This Thread
list - by ravioli2929 - May-07-2019, 10:41 AM
RE: list - by perfringo - May-07-2019, 10:49 AM
RE: list - by ravioli2929 - May-07-2019, 10:59 AM
RE: list - by buran - May-07-2019, 12:03 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020