3.6. Exercise: Middle Point ¶
Write a function named middle_point that calculates the middle point of two points on a 2D plane. The function must take two points as a 2-tuple of floats, and must return the middle point in the same type.
Sample I/O:
>>> middle_point((1.0, 2.0), (4.0, 4.0))
(2.5, 3.0)
>>> middle_point((-4.0, 2.0), (3.0, -4.0))
(-0.5, -1.0)