[6, 4, 2, 8, 12, 10]keep_even_values ([16, 42, 12]) ==> [16, 42, 12]keep_even_values ([11, 7, 123]) ==> []Note: Sometime essay questions in Blackboard remove leading spaces on a line. Leading...


Write the python function named keep_even_values. This function will have 1 parameter that will be a list of integer values. This function is to return a list that keeps the even<br>integer values (values that are mutliples of 2) and remove any odd integer values. The order of the even integer values in the list returned by the function should match the relative<br>ordering of those values given to the function via its parameter.<br>For example:<br>keep_even_values ([6, 4, 2, 5, 3, 8, 1, 7, 12, 10, 9]) ==> [6, 4, 2, 8, 12, 10]<br>keep_even_values ([16, 42, 12]) ==> [16, 42, 12]<br>keep_even_values ([11, 7, 123]) ==> []<br>Note: Sometime essay questions in Blackboard remove leading spaces on a line. Leading spaces in python code can be very important. To show the leading spaces, you can<br>type in the up-arrow character, ^, (shift-6) at the start of the line instead of using the space character and the grader will know you mean a space character. This is only needed for<br>spaces at the beginning of a line of code.<br>

Extracted text: Write the python function named keep_even_values. This function will have 1 parameter that will be a list of integer values. This function is to return a list that keeps the even integer values (values that are mutliples of 2) and remove any odd integer values. The order of the even integer values in the list returned by the function should match the relative ordering of those values given to the function via its parameter. For example: keep_even_values ([6, 4, 2, 5, 3, 8, 1, 7, 12, 10, 9]) ==> [6, 4, 2, 8, 12, 10] keep_even_values ([16, 42, 12]) ==> [16, 42, 12] keep_even_values ([11, 7, 123]) ==> [] Note: Sometime essay questions in Blackboard remove leading spaces on a line. Leading spaces in python code can be very important. To show the leading spaces, you can type in the up-arrow character, ^, (shift-6) at the start of the line instead of using the space character and the grader will know you mean a space character. This is only needed for spaces at the beginning of a line of code.
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here