Question: Find an even number Complete the following function according to its docstring. Use a for loop. The lists we test will not all be shown;
Find an even number Complete the following function according to its docstring. Use a for loop. The lists we test will not all be shown; instead, some will be described in English. If you fail any test cases, you will need to read the description and make your own test 1 rom typing import List 3 def first even(items: Listint]) ->int 4Return the first even number from items Return -1 if items contains no even numbers > tirat even(5, 8, 3,21) 9>> first even(, 1) 101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
