user
How do you calculate the distance between two points?


assistant
The distance between two points can be calculated using the Pythagorean theorem. The formula is d = √ (x2 - x1)2 + (y2 - y1)2, where d is the distance between the two points (x1, y1) and (x2, y2).