Question: Write function called percentage Under TenPounds which takes as the input a list of prices, and returns the percentage of prices which are under

Write function called percentage Under TenPounds which takes as the input a

 

Write function called percentage Under TenPounds which takes as the input a list of prices, and returns the percentage of prices which are under 10 pounds. Arguments: A list of floats (containing the prices) Return value: A single float (containing the percentage of prices which are under 10) *For example: List: [5.99, 15.49, 25.00, 10.25, 15.50, 19.99] would return 16.666 (1 out of 6 prices) List: [2.50, 75.99, 39.50, 7.99] would return 50.0 (2 out of 4 prices) .

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Code def percentageunder10poundsprices This function takes a list of prices and returns the per... View full answer

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 Programming Questions!