#7.3
num = input('input an int num ')
num = int(num)
if num%10 == 0:
print('It is a multiple of 10.')
else:
print('It not is a multiple of 10.')
#7.4
pizza = []
while True:
pei = input('Input your choice ')
if(pei == 'quit'):
break
else:
pizza.append(pei)
print('We will add it in')
#print(pizza)
#7.5
sand_order = ['beef','apple','egg','cheese']
fin_sand = []
while sand_order:
sand = sand_order.pop()
fin_sand.append(sand)
print('I made your '+sand+' sandwich')
print(fin_sand)
高级编程作业 7章
最新推荐文章于 2023-08-29 17:32:26 发布
