我的代码是:
90 if needinexam > 100:
91 print "We are sorry, but you are unable to get an A* in this class."
92 else:
93 print "You need " + final + "% in your Unit 3 controlled assessment to get an A*"
94
95 elif unit2Done == "n":
96
97 else:
98 print "Sorry. That's not a valid answer."
错误是:
line 97
else:
^
IndentationError: expected an indented block
我完全不知道为什么会收到此错误,但是也许你们可以帮我。周围有很多if / else / elif语句,这可能会使我感到困惑。任何帮助都将不胜感激,谢谢!
编辑:在elif语句中添加“通过”或代码只是将相同的错误移至第95行。
慕斯709654
互换的青春
相关分类