题解 | #取号#

取号

http://www.nowcoder.com/practice/2a61684ea405441eb9e572705defebdc

while True:
    print("Welcome! How many people, please?\nEnter 'quit' to end the program.")
    x = input()
    if x == 'quit':
        break
    elif int(x)<=4:
        print('Your small table is reserved!')
    elif int(x)>4 and int(x)<=6:
        print('Your middle table is reserved!')
    elif int(x)>6 and int(x)<=10:
        print('Your large table is reserved!')
    elif int(x)>10:
        print("Sorry, there is no free table that seats over ten persons.")
    
全部评论

相关推荐

不愿透露姓名的神秘牛友
07-07 11:30
仁者伍敌:kpi都懒得刷了属于是
点赞 评论 收藏
分享
这是什么操作什么意思,这公司我服了...
斯派克spark:意思是有比你更便宜的牛马了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务