Welcome to Westonci.ca, the ultimate question and answer platform. Get expert answers to your questions quickly and accurately. Get quick and reliable solutions to your questions from knowledgeable professionals on our comprehensive Q&A platform. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

Write a method called distance that (1) accepts four integer coordinates: x1, y1, x2, y2 as parameters, (2) computes the distance between points (x1, y1) and (x2, y2) on the map, and (3) returns that distance.


The equation for the distance is: sqrt ((x2 - x1)2 + (y2 - y1)2).


Test out your program by writing a main method that calls the distance method for each of the following pairs of cities. Your main method should output the value returned by the distance method.


Distance from Baltimare to Manehattan =

Distance from Los Pegasus to Neighagra Falls =

Distance from the Badlands to Ponyville =


in python