This is a simple Python program to calculate the least distance covering 3 people on a line.
- The program asks the user to enter 3 numbers (representing positions of people on a line).
- It calculates the distance between the farthest two positions.
- The result is printed as the least distance.
$ python least_distance.py
What's your number 1? 2
What's your number 2? 5
What's your number 3? 9
The least distance is:
## Requirements
Python 3.x
Run
Clone the repository and run the script
git clone https://github.com/your-username/least-distance-calculator.git
cd least-distance-calculator
python least_distance.py