Problem 2: Even Numbers Filter
Easypython
Learn the Concept: Variables, Data Types, LoopsProblem 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
text4 8 10
Concepts Covered
Loops, continue, modulus operator, conditionals.
Related Problems
- Problem 1: Sum of a ListEasy · pythonSolve Problem
- Problem 3: Student Record LookupEasy · pythonSolve Problem
- Problem 4: Countdown with Early StopEasy · pythonSolve Problem