题解 | #游乐园的门票#

游乐园的门票

http://www.nowcoder.com/practice/29cc8d49d7bf4197a1cdbfcee340f846

while True:
    print("Please tell me your height!\nEnter 'quit' to end the program.")
    a=input()
    if str(a)=='quit':
        break
    else:
        f=float(a)
        if f<1:
            print('Your admission cost is 0 yuan.')
        else:
            if 1<f<=1.2:
                print('Your admission cost is 80 yuan.')
            else:
                if f>1.2:
                    print('Your admission cost is 150 yuan.')
全部评论

相关推荐

10-09 09:19
已编辑
沈阳农业大学 C++
修订
丿南烟丶:个人评价可以删掉 两个项目都是轮子项目,把一个转换成应用型项目,把MySQL和redis用起来 另外项目的时间可以标明一下
最后再改一次简历
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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