A basic python program to do basic coordinate geometry i.e. Distance formula & Midpoint Formula. This program takes two coordinates and ask the function to be performed. The coordinates are to be given in "x,y" format. After that the program will prompt the user whether he want to use Distance or Midpoint formula. Syntax:
Example 1:
Input 1 : 2,3 Input 2 : 3,4 Input 3 : 1 Output : The distance b/w (2,3) & (3,4) is 2
Example 2:
Input 1 : 2,3 Input 2 : 3,4 Input 3 : 2 Output : The Midpoint of (2,3) & (3,4) is (2.5,3.5)