Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

exact distance math

import math

x1 = int(input("what is x1: "))
y1 = int(input("what is y1: "))
x2 = int(input("what is x2: "))
y2 = int(input("what is y2: "))

eq = (((x1-x2)**2)+((y1-y2)**2))**(1/2)

eqn = eq**2
print("the answer is the square root of",eqn ,"which is", eq)
Comment

PREVIOUS NEXT
Code Example
Python :: Python program to check leap year or not? 
Python :: python strftime iso 8601 
Python :: word pattern in python 
Python :: revesing case python 
Python :: python overwrite text that is already printed 
Python :: write specific columns to csv pandas 
Python :: install python 3 on mac 
Python :: permutations python 
Python :: flask define template folder 
Python :: jinja len is undefined 
Python :: how to graph with python 
Python :: tqdm gui 
Python :: not importing local folder python 
Python :: streamlit dropdown 
Python :: drop index in multiindex pandas 
Python :: ImportError: cannot import name ABC 
Python :: previous value list loop python 
Python :: captain marvel subtitles subscene 
Python :: how to make python open a link 
Python :: gpu training tensorflow 
Python :: how to filter mask results in python cv2 
Python :: how to change the rate of speech in pyttsx3 
Python :: count number of words in a string python 
Python :: pandas plot distribution 
Python :: change all columns in dataframe to string 
Python :: discord.py check if user has role 
Python :: text to sound python 
Python :: add empty row to pandas dataframe 
Python :: download files requests python 
Python :: pygame.set_volume(2.0) max volume 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =