Created
August 2, 2020 02:05
-
-
Save cybnz/52dcf93d5bbe84cc7a3e1872c95a3978 to your computer and use it in GitHub Desktop.
Finds sf but does not check input
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
# Functions go here | |
# Main Routine goes here | |
serving_size = float(input("What is the recipe serving size? ")) | |
desired_size = float(input("How many servings are needed? ")) | |
scale_factor = desired_size / serving_size | |
print("Scale factor: {}".format(scale_factor)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment