title: How do I calculate the length of an x/y coordinate in Python?
body: <p>I'm constructing a program where the user clicks two points in the graphics window and the length of x and y must be shown. I've creating a clone and multiplying it by itself, but no luck. Any ideas? Thanks!</p>
  
  <p>Edit:
  My program is supposed to create a 'money bin' based off the users data and 2 point clicks in the graphics window. I need help figuring out how to get the 'length in x direction' after the user clicks 2 points on the graphics window.</p>
  
  <p>-Here's the example inputs-
  Enter shape of money bin:</p>
  
  <p>1 cube/prism</p>
  
  <p>2 cylinder</p>
  
  <p>3 cone</p>
  
  <p>4 pyramid</p>
  
  <p>Shape: 4</p>
  
  <p>Enter height of money bin: 96.5</p>
  
  <p>Enter cost per cubic foot to build: 2.75</p>
  
  <p>After clicking on the window, click the mouse at two points in the window to determine the money bin base</p>
  
  <p>point 1 coordinates: 16.5258215962 45.7202505219</p>
  
  <p>point 2 coordinates: 60.2190923318 13.4029227557</p>
  
  <p><strong>Length in x direction: 43.6932707355 feet</strong></p>
  
  <p><strong>Length in y direction: 32.3173277662 feet</strong></p>
  
  <p>Volume: 45420.9336744 cubic feet</p>
  
  <p>Cost to build money bin rounded to nearest dollar: 124908</p>
  
  <p>Press  to quit</p>