题解 | #菜品的价格#

菜品的价格

https://www.nowcoder.com/practice/86843c3ba8f240cda3bb2b177f896735

a=input()
if a=='pizza':
    print(10)
elif a=='rice':
    print(2)
elif a=='yogurt':
    print(5)
else:
    print(8)

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

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