Question: python In a program, write a function named filter_list that accepts two arguments: a list, and a number n. Assume that the list contains numbers.
In a program, write a function named filter_list that accepts two arguments: a list, and a number n. Assume that the list contains numbers. The function should print allt of all of the numbers in the list that are greater than the number n. Then call the function in the program. note: you do not have to promot the users to input the list and number. You can define these in your code. Input Correct Output Number: 13 List of numbers Proinut as the list and are defined in your code 019.2040, 10, 24, 20. 1, 85. 201-15,- 122.790 List of numbers that are larger than 13 119,2040, 24, 29. 85. 201, 790
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
