Complete the Point class so that it can find distance between two points and mid point of the line joining the two points
Expected input will be two coordinates in the form of x1 y1 x2 y2
Expected output will be 'scalar distance between two points' and mid point of the line joining two given points in the form of (x,y)
Example 1:
Input:
4 6 4.5 6.7
Output
6
(4,3)
Example 2:
Input:
10 12 10.5 12.5
Output
12
(10,6)