Apr-28-2017, 07:00 AM
(Apr-28-2017, 02:52 AM)zepel Wrote: Use exception handling to convert the user input to float.
This is the reason for the
try/except
As for the problem itself.
You should make main function to take no arguments *since you get the coordonates from it*.
Inside main , put
print(distance(x1,y1,x2,y2))Also , try to use only 1 method.
Either use math.sqrt or **1/2