Python3 题解 | #及格分数#

及格分数

http://www.nowcoder.com/practice/56513524333148b38945e1989bc7df4e

#Python3题解#

lis = []
while 1:
    try:
        lis.append(input())
    except:
        break
print("\n".join("Pass" if int(x) >= 60 else "Fail" for x in lis))
全部评论
ls=int(input()) if ls >=60: print("Pass") else: print("Fail") 这样的为啥不通过呢,能大概说一下吗?
点赞 回复 分享
发布于 2022-03-04 17:19

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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