题解 | #取号#

取号

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

while 1: print("Welcome! How many people, please?\nEnter 'quit' to end the program.") x=input() if x =='quit': break y=int(x) if y not in range(1,21): continue if y <=4: print('Your small table is reserved!') elif 4<y<=6: print( 'Your middle table is reserved!') elif 6<y<=10: print('Your large table is reserved!') else: print( 'Sorry, there is no free table that seats over ten persons.') continue

全部评论

相关推荐

不想投了,不想面了,不想找了感觉自己像个小丑
用微笑面对困难:不是你去大学生就业平台看看啊,boss很多就是冲kpi的
点赞 评论 收藏
分享
牛客383479252号:9,2学生暑期实习失利开始投小厂,给这群人整自信了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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