Program to find the distance between two points

A point identified by the co-ordinates X1,Y1 is at a distance from the point identified by the co-ordinates X2,Y2. Let’s write a Python program to find the distance between two points. How to find the distance between two points? The distance between two points (X1,Y1) and (X2,Y2) can be calculated using the formula given below.... » read more

Program to find the quadrant of a point

A point identified by the co-ordinates x,y is in one of the four quadrants of the co-ordinate system. Let’s write a Python program to find the quadrant of a point specified by x,y. How many quadrants are there in a plane? There are 4 quadrants in a plane in the co-ordinate system. A point x,y... » read more