Question: Complete the following function according to its docstring. from typing import List | def first_even(items: List) ->int: Return the first even number from items. Return

Complete the following function according to its docstring.

Complete the following function according to its docstring. from typing import List

from typing import List | def first_even(items: List) ->int: "Return the first even number from items. Return -1 if items contains no even numbers. >>> first_even([5, 8, 3, 2]) 8 >>> first_even([7, 1]) -1 18 18

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!