This Python program allows you to check if a set of three numbers can form a valid triangle. It provides three user cases for checking triangles:
- User-Provided Numbers: Users can input their own set of three numbers during the execution of the program.
- Predefined Numbers: Software developers can test the program with predefined numbers to verify its functionality.
- Randomly Generated Numbers: The program can generate random numbers during its execution to test the triangle-checking functionality.
- Python 3.x
-
Clone this repository to your local machine.
git clone https://github.com/gpapadopp/triangle-finder-python
-
Navigate to the repository's directory.
cd triangle-finder-python
-
To check if a set of three user-provided numbers can form a triangle, run the program without any arguments:
python main.py
-
Follow the on-screen instructions to input the three numbers, and the program will determine if they can form a valid triangle.
-
Developers can use predefined numbers to test the program's functionality. Modify the main.py file and set the predefined_numbers variable list to the desired values.
-
Then, run the program:
python main.py
-
Follow the on-screen instructions to input the three numbers, and the program will determine if they can form a valid triangle.
-
The program will use the predefined values to check if they form a valid triangle.
-
To test the program with randomly generated numbers, simply run the program without any arguments:
python main.py
-
The program will generate three random numbers within a specified range and check if they can form a valid triangle. You can adjust the range in the code to fit your requirements.
This project is open-source and available under the MIT License. You are free to use, modify, and distribute this software as long as you include the original copyright notice and disclaimers.
This README provides a basic overview. You can add more details, installation instructions, usage guidelines, and other information you consider important for your project.