summaryrefslogtreecommitdiff
path: root/progs/a584.py
blob: 0833cd2535aee103e689e72ded470fc890003076 (plain)
1
2
3
def first_even(nums):
    first_even = next((el for el in nums if el%2==0),-1)
    return first_even