WWW Temporary · session only
All goals

Python fundamentals · controlled Python Alpha path

Filtering loops

0 of 5 independent
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 programkept = [] for number in [1, 2, 4, 7, 8]: if number % 2 == 0: kept.append(number) print(kept)