summaryrefslogtreecommitdiff
path: root/progs/a401.py
blob: 7c2f8f0c9f16d6d575b8235b7af17f48e335491e (plain)
1
2
3
4
def div_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)