Skip to content
CampusEduX

Problem 2: Even Numbers Filter

Easypython
Learn the Concept: Variables, Data Types, Loops

Problem Description

Write a Python program that takes a list of numbers and prints only the even numbers, one per line, using a loop and the continue statement to skip odd numbers.

Input

A list of integers.

Output

Each even number from the list, printed on its own line, in original order.

Constraints

  • List may contain both positive and negative integers.

Example Input

text
[3, 4, 7, 8, 10, 11]

Example Output

text
4 8 10

Concepts Covered

Loops, continue, modulus operator, conditionals.

Related Problems

Input (stdin)

Output

Run your code to see output here...