Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
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