human
Write me a Python code to find the product of first even and odd number of a given list given the following:
Write a function to find the product of first even and odd number of a given list. Here is a solution in Python:
assistant
#Here is Python code to find the product of first even and odd number of a given list.
 def mul_even_odd(list1):
    first_even = next((el for el in list1 if el%2==0),-1)
    first_odd = next((el for el in list1 if el%2!=0),-1)
    return (first_even*first_odd)