---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-3-921dd524ff9b> in <module>()
----> 1 print normalize_rectangle((0.0,1.0,2.0))
<ipython-input-2-9ad077207dd6> in normalize_rectangle(rect)
2 # Normalizes a rectangle so that it is at the origin and 1.0 units
3 # long on its longest axis.
----> 4 assert len(rect) == 4, 'Rectangles must contain 4 coordinates'
5 x0, y0, x1, y1 = rect
6 assert x0 < x1, 'Invalid X coordinates'
AssertionError: Rectangles must contain 4 coordinates