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 two variables, p1
, and p2
.
Next, you will need to assign them to the point class, with the coordinates after that. It will look like this:
#The coordinates shown here are just an example.
p1 = Point(4, 9)
p2 = Point(3, 4)
After you have done this, you can calculate the distance by simply running print(p1.distance(p2))
.(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.0.2.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for distancecalc-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5243fd707e09f08d483d80db19f7c026242a47034168274fb7f2ecd9f350d3d8 |
|
MD5 | 3976245be75a4a61c3e47d9b616e9150 |
|
BLAKE2b-256 | 14da6c8e81c94572e0580a36e390d6379eff3d7c0c2dc014025ca24352253e06 |