LearnPy Hub
← Recursion & Lambda problems
Easy

Positives with filter()

Read integers and print only the positive ones (in order) using filter() with a lambda. At least one is positive.

Input

One line of integers.

Output

One line.

Sample 1

Input
1 -2 3 0
Output
1 3

Sample 2

Input
5
Output
5
solution.py
Output appears here
Positives with filter() · Python practice problem · LearnPy Hub