Calculates the distance between two points.
# This will calculate the distance between two points # (xP, yP) and (xQ, yQ) from math import sqrt def distance(xP, yP, xQ, yQ): """ Find the distance between two points: (xP, yP) and (xQ, yQ) parameters: x and y coordinates of two points (floats) return: distance between two points (float) """ return sqrt((yQ - yP)**2 + (xQ - xP)**2)