This python program allows you to convert between nine types of measurements and contains a total of sixty-two units. It has a total of over 3,000 lines of code.
When you run this program, you will be asked the type of measurement conversion you would like to make. You can type in either the number or abbreviation. In this this tutorial, we'll use weight (enter a "w" or "1").
Next, you will choose the unit you are converting from and to. After inputting abbreviations for both, you can enter all the values you want. Additionally, you can use numbers of any value (positives, negatives, and decimals). If you change your mind about the measurement type, you can enter 0 to return to the beginning.
Your input must be separated by spaces.
After you finish your input, you will receive an array of all the values converted and rounded to 4 decimals for more accuracy.You can then decide if you'd like to make another conversion. Enter a "1" for yes or a "2" for no. If yes, you will go through the code again like you previously did. If you decide not to, you will get a completion message.Here is a diagram with all of the measurements and included units.