Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

midpoint

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 :: dataframe color cells 
Python :: seconds to datetime.time 
Python :: python sort multiple lists based on sorting of single list 
Python :: get multiple inputs in python 
Python :: django queryset group by 
Python :: django response headers 
Python :: fibonacci series list comphrehension in python 
Python :: bucketizer pyspark 
Python :: ValueError: With n_samples=0, test_size=0.2 and train_size=None, the resulting train set will be empty. Adjust any of the aforementioned parameters. 
Python :: python panda append rows to csv python 
Python :: python property 
Python :: turn list in to word python 
Python :: matplotlib python background color 
Python :: create a dataframe from dict 
Python :: finding odd even python 
Python :: python pow 
Python :: python docx extract image 
Python :: django active link 
Python :: word2number python 
Python :: python fstring 
Python :: python array colon 
Python :: How to create role discord.py 
Python :: How to combine train and Test dataset in python 
Python :: python subtract list from list 
Python :: Use module Crypto.Cipher.PKCS1_OAEP instead 
Python :: how to convert python input to int 
Python :: python datetime compare date 
Python :: python trim whitespace from end of string 
Python :: get request body flask 
Python :: discord.py get server id 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =