7-2
costomers = input("how many people come for dinner?\n")
costomers = int(costomers)
if costomers > 8:
... print("sorry we can not serve all of you.\n")
... else:
... print("welcome, please come in.\n")
7-3
num = input("input a number:\n")
if int(num)%10 == 0:
... print("Yes\n")
... else:
... print("No\n")
7-5
while True:
age = input("how old are you?\n")
if age == 'quit':
break
elif int(age) < 3:
print("your tiket prise: $0\n")
elif int(age) <= 12:
print("your tiket prise: $10\n")
else:
print("your tiket prise: $15\n")
print("enjoin yourself!\n")
7-8
sandwich_orders = ['bacon-and-egg sandwich','Brioche sandwiches','Francesinha','bocadilloderabas']
finished_sandwiches = []
while sandwich_orders:
sandwich = sandwich_orders.pop()
finished_sandwiches.append(sandwich)
print("I made your tuna sandwich.\n")
for your_sandwich in finished_sandwiches:
print(your_sandwich+'\t')