A Python script that calculates how much weight (in pounds) a person loses during a triathlon.
Python 3.x
Click the Code button, then click on "Download ZIP"
OR
Click the triathlon.py file, then click on the Download Raw File button.
- Enter the number of hours spent running. It must be a positive number, either integer or decimal. Then, press Enter.
- Enter the number of hours spent swimming. It must be a positive number, either integer or decimal. Then, press Enter.
- Enter the number of hours spent biking. It must be a positive number, either integer or decimal. Then, press Enter.
- The weight loss will be displayed on screen.
- Finally, press Enter to exit the program.
MIT License © 2025 Antonis Paraskevis