Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

distancecalc-1.1.1-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page