You are browsing as a guest. Sign up (or log in) to start making projects!

Weight Converter

  • 4 Devlogs
  • 4 Total hours

This is a Python script that you can input a volume and weight and it will tell you how much any volume will weigh! For example, it could take the "2 tbs (32 g)" on an ingredient's nutrition facts label into the weight of 4 cups! When measuring out sticky ingredients like peanut butter, it is easier to measure by weight. This will quickly tell you how much your amount of peanut butter weighs.

Open comments for this post

17m 48s logged

Fixed and ready to ship!

I moved the .exe file into the Releases section of my GitHub repository (which was the requested change) and typed some nonsense into the README and deleted it so enough time was tracked to post another devlog. I couldn’t tell how much time that was,(because the red text was hard to read and the number was on top of the other buttons) but it was less than five minutes.

0
0
8
Ship #1 Pending review

Weight Converter is a Python script that will take any amount and weight and tell you how much any amount will weigh! This will make cooking with sticky ingredients (like peanut butter) easier. For example, you could input the "2 tbs (32g)" on an ingredient and the program will immediately tell you the weight of however much your recipe calls for.
In making this project, I learned how to use PyInputPlus for input validation and learned how to format a printed string to add color to the terminal. I also learned how to make a Python script into a .exe file for the demo of this project.
This is my first ship on any Hack Club program, so I am proud of just completing the ship on this program.
To demo this project, download the weight-converter.exe file and double click on it in the file explorer to run it.

  • 3 devlogs
  • 4h
Try project → See source code →
Open comments for this post

55m 35s logged

Ready to ship!

The GitHub repository is finished, the Python script is compiled into a .exe, an icon for the .exe is ready, I am ready to ship!
I also made a couple changes to the code like not closing the terminal immediately (for the .exe file type) and adding the original weight as well as the new weight to the printed text.

0
0
4
Open comments for this post

1h 25m 21s logged

Finished! (Mostly!)

I changed the code to use PyInputPlus for input validation and upgrading the user experience. I also added more colors so that the program is no longer a wall of text looking back through it. The colors also will be another way of noticing what input is wanted, either a weight unit, volume unit, or number.
I still need to finish the GitHub repository and turn the script into an executable before I will be ready to ship, but I’m almost there.

0
0
4
Open comments for this post

1h 33m 34s logged

The code is working!

The terminal has a user input given amounts and weights and the desired amount and weight unit, then spits out the weight of the new amount. Colored text makes it more readable and noticeable when something changes in the prompts.

0
0
7

Followers

Loading…