def flatten_points(points):
    """Given a list of points, flatten them starting from x and going to y.

    Example:
        `flatten_points([Point(x=1,y=2), Point(x=2,y=3)])`
        -->
        `[1, 2, 2, 3]`"""
    numbers = []
    for point in points:
        numbers.append(point.x)
        numbers.append(point.y)
    return numbers
