Hello, I need help with writing this program out in Python. I use jGrasp for this problem as well any help will be appreciated.
'''
The restaurant list has been created as list of list.Every element
is a
list with name vegetatrian,vegan and gluten free as
attributes
'''
list = [["Joe's Gourmet Burgers","no", "no","no"],
["Main Street Pizza
Company","yes", "no","yes"],
["Corner Cafe","yes",
"yes","yes"],
["Mama's Fine
Italian","yes", "no","no"],
["The Chef's
Kitchen","yes", "yes","yes"]]
count = 0
inp1 = input("Is anyone in your party a vegetarian?(yes/no)")
if inp1=="yes":
count = count + 1
inp2 = input("Is anyone in your party a vegan?(yes/no)")
if inp2=="yes":
count = count + 1
inp3 = input("Is anyone in your party a
gluten-free?(yes/no)")
if inp3=="yes":
count = count + 1
choice = []
for i in range(len(list)):
found = 0
if inp1 == "yes":
if list[i][1] ==
inp1:
found = found + 1
if inp2 == "yes":
if list[i][2] ==
inp2:
found = found + 1
if inp3 == "yes":
if list[i][3] ==
inp3:
found = found + 1
if count == found:
choice.append(list[i][0])
if len(choice) > 0:
print("Here are your restaurant choices:")
for i in range(len(choice)):
print(choice[i])
else:
print("None of the resaturant seems applicable")
Hello, I need help with writing this program out in Python. I use jGrasp for this...
Hello, my name is Shady Slim. I understand you are going to help me figure out my gross income for the year... whatever that means. It's been a busy year and I'm a busy man, so let me give you the lowdown on my life and you can do your thing I was unemployed at the beginning of the year and got $2,000 in unemployment compensation. I later got a job as a manager for Roca Cola. I earned $57,500...