Question: Can someone help me solve this? BIOCRFy: #33.5) Filter Hign Use the Filter pattern to write a function filter_high that consumes a list of numbers

Can someone help me solve this? BIOCRFy: #33.5) Filter Hign Use theCan someone help me solve this?

BIOCRFy: #33.5) Filter Hign Use the Filter pattern to write a function filter_high that consumes a list of numbers and returns a new list without any numbers greater than 50. Use and print this function called on the list [30, 40, 50, 60, 701 Server savCd Execution Idle Printer Feedback Instructor Feedback Your filter_high function did not return the right value Given arguments: [1, 2, 3] Expected return: [1, 2, 3] Actually returned: 50 Trace Variables 70 Run Blocks Split / Text Reset O Upload History 1 def filter high(a list) minimum = 50 for item in a list: 4 if item> minimum: minimum item return minimum 8 print(filter_high([30, 40, 50, 60, 70]))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!