Skip to content

Instantly share code, notes, and snippets.

@cybnz
Created August 2, 2020 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cybnz/52dcf93d5bbe84cc7a3e1872c95a3978 to your computer and use it in GitHub Desktop.
Save cybnz/52dcf93d5bbe84cc7a3e1872c95a3978 to your computer and use it in GitHub Desktop.
Finds sf but does not check input
# 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