【发布时间】:2019-12-01 20:25:01
【问题描述】:
我写了代码 if 语句,但它有一个错误。 这是代码
mark = float(input('enter your mark : '))
if mark < 50:
result = 'failed'
elif mark >= 50 and < 75:
result = 'accepted'
elif mark >= 75 and < 85:
result = 'good'
elif mark >= 85 and < 90:
result = 'very good'
else:
result = 'excellent'
print(result)
关于
【问题讨论】:
-
您的代码无法编译。
标签: python python-3.x windows if-statement syntax