Question: In PYTHON Functions: even: Write a function get_even_list that takes a list and returns a new list containing all the even numbers in the original

In PYTHON
Functions: even: Write a function get_even_list that takes a list and returns a new list containing all the even numbers in the original list. The returned list should follow the order of the input list. You can assume that input list only contains integers. print ("get_even list ([1,2,3,4,5])") ans get evenlist ([1.2,3,4,5]) print (ans) print ("get_even_list ([11,22,33,44,55])") ans-get_even_list ([11,22,33,44,55]) print (ans) print("get_even list ([10,20,30,40,50])") ans-get even_list ([10,20,30,40,50]) print (ans) print("get_even list ([11,21,31,41,51])") ans-get_even_list ([11,21,31,41,51]) print (axs) The output should be: get even_list (l1,2,3,4,5]) [2, 4] get_even list ([11,22,33,44,55]) [22, 44] get_even_list ([10,20,30,40,50]) [10, 20, 30, 40, 50] get even_list([11,21,31,41,51]) Cl
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
