Last active
July 4, 2021 10:00
-
-
Save chrisswanda/1f2f96b3b69f00e79d954e5521770058 to your computer and use it in GitHub Desktop.
Cook perfect rice in your instant pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''This stupid little script I use all the time to make perfect rice in my instant pot. | |
I also have a Siri Shortcut in the event that I'm near my HomePod, or other Apple devices. | |
https://www.icloud.com/shortcuts/c67d4960a15b42d6afb0cc58c649ff03 Just tell Siri, Cook Rice. | |
It makes the perfect white rice in your pressure cooker or instant pot. | |
How I use it, is to use a kitchen scale to weigh my inner pot (which is always 1102 grams, | |
but added in the formula in the event I find myself at someone else's house and need to make some perfect rice). | |
I then weigh my rice individually to get the weight. I then wash my rice in multiple changes of water until it runs clear. | |
And this is where the total_pot_weight comes in handy. Since the washed rice is wet and heavier, I calculate what the total | |
should be based on the inner pot weight, the weight of the rice, and how much water should be added.''' | |
inner_pot_weight = input("How much does your inner pot weigh: ") | |
RiceWeight = input("How much does your rice weigh in grams: ") | |
water_amount = (int(RiceWeight) * .19) + int(RiceWeight) | |
total_pot_weight = int(inner_pot_weight) + int(RiceWeight) + int(water_amount) | |
print(f'You will need to add {water_amount:.0f} grams of water, and your total pot weight will be {total_pot_weight} grams.') | |
print("Set your pressure cooker to white rice, and do a natural release after 10 minutes.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment