diff options
Diffstat (limited to 'progs/a584.py')
-rw-r--r-- | progs/a584.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a584.py b/progs/a584.py new file mode 100644 index 0000000..0833cd2 --- /dev/null +++ b/progs/a584.py @@ -0,0 +1,3 @@ +def first_even(nums):
+ first_even = next((el for el in nums if el%2==0),-1)
+ return first_even
\ No newline at end of file |