Python fundamentals · controlled Python Alpha path
Filtering loops
Practice without hintsPractice · controlled exact evaluation
Your task
Trace a loop that keeps even numbers.
Read the controlled Python program and enter the exact list it prints. This checks one narrow, observable skill—not arbitrary code quality.
Python program
kept = []
for number in [1, 2, 4, 7, 8]:
if number % 2 == 0:
kept.append(number)
print(kept)