Created
June 26, 2012 23:55
-
-
Save MercuryRising/3000264 to your computer and use it in GitHub Desktop.
Meat Type
This file contains hidden or 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
import sys | |
def printIt(meatType, temp): | |
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!") | |
sys.exit() | |
while True: | |
print("Hello master chef, and welcome to MeatTemp Version 1.0!") | |
print("Please type your name and press ENTER: ") | |
name = input() | |
while True: | |
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" | |
printIt(meatType, temp) | |
elif meat == "2": | |
meatType = ["non-ground beef"] | |
while 1: | |
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" | |
printIt(meatType, temp) | |
elif cooked == "2": | |
meatType.append("medium") | |
temp = "160" | |
printIt(meatType, temp) | |
elif cooked == "3": | |
meatType.append("well-done") | |
temp = "170" | |
printIt(meatType, temp) | |
else: | |
continue | |
elif meat == "3": | |
meatType = ["chicken dishes"] | |
temp = 160 | |
printIt(meatType, temp) | |
elif meat == "4": | |
meatType = ["turkey product"] | |
temp = 165 | |
printIt(meatType, temp) | |
elif meat == "5": | |
meatType = ["pork"] | |
while 1: | |
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" | |
printIt(meatType, temp) | |
elif cooked == "2": | |
temp = "170" | |
printIt(meatType, temp) | |
elif cooked == "3": | |
temp = "160" | |
printIt(meatType, temp) | |
elif cooked == "4": | |
temp = "140" | |
printIt(meatType, temp) | |
else: | |
continue | |
else: | |
continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment