Sichanov

even numbers

Sep 19th, 2021
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. nums = list(map(int, input().split(', ')))
  2. even_nums = list(filter(lambda index: nums[index] % 2 == 0, range(len(nums))))
  3. print(even_nums)
Advertisement
Add Comment
Please, Sign In to add comment