Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

mid point formula

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: "))

xm = ((x1+x2)/2)

ym = +((y1+y2)/2)
print("the x midpoint is",xm ,"and the y midpoint is", ym)
Comment

PREVIOUS NEXT
Code Example
Python :: beautifulsoup find get value 
Python :: custom jupyter notebook 
Python :: python tkinter get image size 
Python :: create empty numpy array without shape 
Python :: code for python shell 3.8.5 games 
Python :: round off to two decimal places python 
Python :: soup findall table 
Python :: python cocktail sort 
Python :: pycocotools python3.7 
Python :: python pandas csv append 
Python :: python getters and setters 
Python :: test_size 
Python :: voice translate python 
Python :: unique values in dataframe column count 
Python :: download from colab to local drive 
Python :: reading json file 
Python :: sort first element reverse sort second python 
Python :: how to print a list of strings in python 
Python :: xlabel and ylabel in python 
Python :: builtwith python 
Python :: python slice notation 
Python :: map and filter in python 
Python :: How to join train and Test dataset in python 
Python :: rename row pandas 
Python :: digit sum codechef 
Python :: python iterating through a string 
Python :: find highest correlation pairs pandas 
Python :: Error: The file/path provided (flaskr) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py 
Python :: python smtp sendmail 
Python :: python numpy matrix to list 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =