A simple python script that take two numbers and gives out a Pythagorean Triple. Learn more about why this works here. Inspired by the same video.
This script will run with most verison of python2 and python3. However, python 3 is recomended.
- Python3.6>= (RECOMENDED)
- Numpy
Clone the repository and enter it.
python3 pythagorean-triple.py
- On screen instruction will guide you through the script process.
- The two numbers cannot be the same. This will give out a useless triple.
- The second number cannot be even. This will also give out a useless triple.
- This will not find every individual pythagorean triple. It will howver find at least one of every multiple.
Again, refer back to the included video for why this happens.