Rewrite It as a Comprehension

Replace a manual filter-and-transform loop with a single list comprehension.

A intermediate Linux challenge worth 10 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: /home/labuser/lab/transform.py should collect the squares of every even number from 1 to 20, but the logic to filter and square them was never written.

Task: Fix transform.py using a list comprehension so squares.txt contains 4,16,36,64,100,144,196,256,324,400. Run check when ready.