Just added: Algorithms you can run and practice
Python
# Rewrite even_squares(n) below as a one-line list comprehension -
# same result: the square of every even number from 1 to n, in order.
def even_squares(n):
    result = []
    for i in range(1, n + 1):
        if i % 2 == 0:
            result.append(i * i)
    return result