Question: Even List Exercise Write a program even2.py with a function chooseEven with heading: def chooseEven (nums): '''Given a list of integers, nums, return a list

Even List Exercise Write a program even2.py with a function chooseEven with heading: def chooseEven (nums): '''Given a list of integers, nums, return a list containing only the even ones. >>> chooseEven ( [4, 1, 3, 2, 7]) [4, 2] In your main program, test the function, calling it several times with different lists of integers and printing the results. Hint: Create a new list, and append the appropriate numbers to it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
