even_squares(nums) that returns a list of the squares of only the even numbers in nums, in one list comprehension combining a filter and a transform.even_squares([1, 2, 3, 4])
[4, 16]
Only 2 and 4 are even; their squares are 4 and 16.
The if clause goes after the for clause.
[n * n for n in nums if ...].