Given the input list [1,3,4,7,6]. The third and fifth elements are even numbers, since 4 divided by 2 and 6 divided by 2 equals zero. The first, second, and fourth elements are odd numbers, because 1 divided by 2, 3 divided by 2, and 7 divided by 2 is not equal to zero. The first even number from the list is 4 and the first odd number is 1. The output is the tuple (4, 1). Given the input list [2,4,3,1]. The first and second elements are even numbers, since 2 divided by 2 and 4 divided by 2 equals zero. The third and fourth elements are odd numbers, because 3 divided by 2 and 1 divided by 2 is not equal to zero. The first even number is 2 and the first odd number from the list is 3. The output is the tuple (2, 3). Given the input list [2,4,6]. The first, second and third elements are even numbers, since 2 divided by 2, 4 divided by 2 and 6 divided by 2 equals zero. There are no odd numbers, so the output is the tuple (2, -1).
[[1,3,4,7,6]] [[2,4,3,1]] [[2,4,6]]
(4, 1) (2, 3) (2, -1)