A Distance Calculator
Project description
Distance Calculator
Introduction
The distance calculator is a way to find the distance between two points!
Usage
First, you will need to create four variables, p1x
, p2x
, p1y
, and p2y
.
Next, you will need to assign them to coordinates. It will look like this:
#The coordinates shown here are just an example.
import distancecalc
p1x = 4
p2x = 3
p1y = 5
p2y = 6
After you have done this, you can calculate the distance by simply running print(distancecalc.distance(p1x, p1y, p2x, p2y))
.(Obviously you don't have to print it, you can save as variable.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
distancecalc-1.1.1.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file distancecalc-1.1.1.tar.gz
.
File metadata
- Download URL: distancecalc-1.1.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2feec2d651a73a662f472abd54cae9dc238fd582e4aad643babbcfc91a7dc3c2 |
|
MD5 | 4ae39abc718e6786c58d17a23b0ae040 |
|
BLAKE2b-256 | 453f51cf9bc81856614c705a4ea432d46747a5129f74b5b02f198296e56fd0f1 |
File details
Details for the file distancecalc-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: distancecalc-1.1.1-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd8dc5b33beafe366142c6cc5b4970e9facbd602f97d26005898551f5cb23aa5 |
|
MD5 | 8790cc47a72f18244c6922015c60f760 |
|
BLAKE2b-256 | 68b2a25ed397edeabb47b9fc9dfc6cbb4257bd931ec5a533e6ff25a88a6fdac0 |