I get the error message "NameError: name 'wine' is not defined" whenever I run the following code:
def pub():
print ("Welcome to the pub; what will you be drinking tonight?")
answer = input("Choose the type of beverage you desire")
if answer == " Beer" or answer == " beer":
print ("You've come to the right place; have a seat!")
elif answer == " Wine" or answer == " wine":
print ("Sorry, we don't serve wine here. Why don't you try next door?")
elif answer == " Cocktails" or answer == " cocktails" :
print ("Cocktails? who drinks those anymore?")
elif answer == " Liquor" or answer == " liquor":
print ("Sorry, we don't serve hard drinks here.")
else:
print ("You didn't pick a legitimate drink; try again!")
pub()
def beer_selection():
print ("Now we need to know what types of beers you're into. Select one of the \
following flavor profiles:")
flavor_profiles = ["Rich and malty", "Crisp and hoppy", "Light and fruity", "Smooth and balanced", "Piney and hoppy"]
Any help would be greatly appreciated!