def move(selfxy)self self def reset(self)self move( def calculate_distance(selfother_point)return math sqrt(self other_point )** (self other_point )** how to use itpoint point(point point(point reset(point move( , print(point calculate_distance(point )assert (point calculate_distance(point =point calculate_distance(point )point move( , print(point calculate_distance(point )print(point calculate_distance(point )the print statements at the end give us the following output lot has happened here the class now has three methods the move method accepts two argumentsx and yand sets the values on the self objectmuch like the old reset method from the previous example the old reset method now calls movesince reset is just move to specific known location the calculate_distance method uses the not-too-complex pythagorean theorem to calculate the distance between two points hope you understand the math (*means squaredand math sqrt calculates square root)but it' not requirement for our current focuslearning how to write methods