Skip to content

Instantly share code, notes, and snippets.

@MercuryRising
Created June 26, 2012 23:42
Show Gist options
  • Save MercuryRising/3000201 to your computer and use it in GitHub Desktop.
Save MercuryRising/3000201 to your computer and use it in GitHub Desktop.
Meat Type
print("Hello master chef, and welcome to MeatTemp Version 1.0!")
print("Please type your name and press ENTER: ")
name = input()
print("Welcome,",name+"! Please select the number corresponding to the type of meat you will be working with and press ENTER: ")
print("1. Beef (Ground)")
print("2. Beef (Non-ground)")
print("3. Chicken")
print("4. Turkey")
print("5. Pork")
meat = input()
if meat == "1":
meatType = ["ground beef"]
temp = "160"
elif meat == "2":
meatType = ["non-ground beef"]
print("Please specify how cooked you would like your meat by entering the number of the corresponding option and press ENTER: ")
print("1. Meduim-Rare")
print("2. Medium")
print("3. Well-Done")
cooked = input()
if cooked == "1":
meatType.append("medium-rare")
temp = "145"
elif cooked == "2":
meatType.append("medium")
temp = "160"
elif cooked == "3":
meatType.append("well-done")
temp = "170"
elif meat == "3":
meatType = ["chicken dishes"]
temp = 160
elif meat == "4":
meatType = ["turkey product"]
temp = 165
elif meat == "5":
meatType = ["pork"]
print("So you're working with a pork product today?")
print("Please specify how cooked/what type of pork product you are using by entering the number of the corresponding option and press ENTER: ")
print("1. Medium")
print("2. Well-Done")
print("3. Fresh, raw ham")
print("4. Fully cooked ham, to re-heat")
cooked = input()
if cooked == "1":
temp = "160"
elif cooked == "2":
temp = "170"
elif cooked == "3":
temp = "160"
elif cooked == "4":
temp = "140"
else:
print("Something went wrong, try again!")
meatType = ' '.join(meatType)
print("I recommend cooking your {0} to an internal temperature of {1} degrees Fahrenheit.".format(meatType, temp))
print("Thank you for using MeatTemp Version 1.0! Bon appetit!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment