我正在学习 python,我正在尝试一组练习,但我被困在下一个练习中:
inp_1 = input('your score between 0.0 and 1.0')
try:
score = float(inp_1)
if 0.9 <= score <= 1.0:
print ("A") elif score >= 0.8:
print ("B") elif score >= 0.7:
print ("C") elif score >= 0.6:
print ("D") elif score < 0.6:
print ("Your grade is an F")
else:
print ('your score is more than 1.0')
except:
print ('invalid input, please try with a number')
但我收到下一条消息错误:
IndentationError: unindent does not match any outer indentation level on line 7 elif score >= 0.8: ^ in main.py