LearnPy Hub
← Comprehensions problems
Easy

Keep the Evens

Read a list of integers and print a list of only the even ones.

Input

One line of integers.

Output

A list.

Sample 1

Input
1 2 3 4
Output
[2, 4]

Sample 2

Input
1 3
Output
[]
solution.py
Output appears here
Keep the Evens · Python practice problem · LearnPy Hub