def compute_all_squares(of_range):
    """Compute the squares of all the natural numbers in a range."""
    
    # Register the list of squares.
    squares = []

    for i in range(of_range):
        squares.append(i*i)
    
    return squares