【高编作业】第七章课后题

7-1

car = input('What kind of car do you want?\n')
print('Let me see if I can find you a', car)

7-2

num = int(input('How many people are there?\n'))
if num > 8:
	print('There is no empty desk')
else:
	print('There is an empty desk')

7-3

num = int(input('enter a number\n'))
if num % 10 == 0:
	print(num,'is a multiple of 10')
else:
	print(num,'is not a multiple of 10')

7-4

while True:
	message = input('Please add a batching\n')
	if message == 'quit':
		break
	else:
		print('We will add', message)

猜你喜欢

转载自blog.csdn.net/weixin_40247273/article/details/79711748
今日推荐