I need to create a script that calculates the distance between two coordinates. The issue I'm having though is when I assign the coordinate to object one, it is stored as a string and am unable to convert it to a list or integer/float. How can I convert this into either a list or integer/float? The script and error I get is below.
Script:
one=input("Enter an x,y coordinate.")
Enter an x,y coordinate. 1,7
int(1,7)
Traceback (most recent call last):
File "<ipython-input-76-67de81c91c02>", line 1, in <module>
int(1,7)
TypeError: int() can't convert non-string with explicit base