Skip to content
C

Generator Pipeline

Mediumpython

Build a 3-stage generator pipeline: one generator yields the given numbers, one squares them, and one filters to keep only values greater than 20.

Approach: chain three generator functions (readnumbers, squareall, filtergreaterthan_20), feeding each one's output into the next, and materialize the final result with list().

Input: One line: space-separated integers.

Output: One line: the squared, filtered values as a Python list.

Input (stdin)

Output

Run your code to see output here...