7-1汽车租赁:
str=input('What car do you want ')
print('Let me see if I can find you a',str1)
运行结果:
7-2餐厅订位:
str1=input('How many people will come to the dinner:')
str1=int(str1)
if str1>8:
print('No empty table')
else:
print('There are empty table')
运行结果:
7-3 10的整数倍:
num=int(input('Please input a number:'))
print('The number is times of 10') if num%10==0 else print('The