#作业7-1
# rint('Let me see if I can find you a '+a+'.')
# 作业7-2
# c=input('how many poeple are going to lunch?')
# if int(c)>8:
# print("we don't have enough seats!")
# else:
# print("we have seats.")
# 作业7-3
# c=input('please input a number:')
# if int(c)%10==0:
# print('它是10的倍数!')
# else:
# print("它不是10的倍数。")
# 作业7-4
# active=True
# while active:
# message=input("配料:")
# if message=='quit':
# active=False
# else:
# print("我们会在比萨中添加"+message+"。")
# 作业7-5
# active=True
# while active:
# age=input("please input your age:")
# if int(age)<3 and int(age)>0:
# print("you are free.")
# elif int(age)>=3 and int(age)<12:
# print('you need to pay $10.')
# elif int(age)>=12 and int(age)<=121:
# print('you need to pay $15.')
# else:
# active=False
# 作业7-6
# age = ' '
# while age!='quit':
# age = input("please input your age:")
# if str(age)=='quit':
# break
# elif int(age) < 3 and int(age) > 0:
# print("you are free.")
# elif int(age) >= 3 and int(age) < 12:
# print('you need to pay $10.')
# elif int(age) >= 12 and int(age) <= 121:
# print('you need to pay $15.')
# else:
# continue
# 作业7-7
# x=1
# while x<5:
# print(x)
# 作业7-8
# sandwich_orders=["tomato","potato","apple"]
# finished_sandwices=[]
# while sandwich_orders:
# making_sandwich=sandwich_orders.pop()
# print("I made your "+making_sandwich+' sandwich.')
# finished_sandwices.append(making_sandwich)
# print(finished_sandwices)
# 作业7-9
# sandwich_orders=["tomato","pastrami","potato","pastrami","apple","pastrami"]
# print("pastrami has been sale off")
# while "pastrami" in sandwich_orders:
# sandwich_orders.remove("pastrami")
# print(sandwich_orders)
# 作业7-10
# responses={}
# polling_active=True
# while polling_active:
# name=input('\nwhat is your name?')
# response=input("if ou could visit one place in world,where would you go?")
#
# responses[name]=response
#
# repeat=input("would you like to let another person respond?(yes/no)")
# if repeat=='no':
# polling_active=False
# print(responses)
python从入门到精通第7章课后作业#作业7-1# rint('Let me see if I can find you a '+a+'.')# 作业7-2# c=input('how many poeple are going to lunch?')# if int(c)>8:# print("we don't have enough seats!")# else:# print("we have seats.")# 作业7-3# c=input('please