标签: if-statement python-3.7
当我在范围内输入<=时,我再次在做学校课程。 > = 95和<= 100我被告知<=中的小于或=是语法错误。
since I can't type copy and paste the code without errors here this is the code in full so far
答案 0 :(得分:2)
表达式的两个路径中都需要变量:if var >= 96 and var <= 100:
if var >= 96 and var <= 100: