Trying to make a point to point calculator. Unsupported operand types? : <p>Im trying to make a program which calculates the distance between two user inputted points. How can I fix this so that it works? So far I have this</p>

<pre><code>import math  

p1 = [int(input("PLease enter point 1x\n")), (input("Please enter point    1y\n"))]
p2 = [int(input("PLease enter point 2x\n")), (input("Please enter point 2y\n"))] 
distance = math.sqrt( ((p1[0]-p2[0])**2)+((p1[1]-p2[1])**2) )  

print(distance)
</code></pre>

<p>The error that it spits out at me is: TypeError: unsupported operand type(s) for -: 'str' and 'str'</p>

<p>Am I going about this in the right way at all?</p>
