Skip to content

Pass or fail · ⁨及格还是不及格⁩

English

Pass or fail

mark is 47. Print pass when the mark is 50 or more, and fail otherwise.

else catches everything the if did not. It takes no condition of its own — just else: — and its own indented line underneath.

中文

及格还是不及格

mark 是 47。当分数大于或等于 50 时打印 pass,否则打印 fail。

else 接住 if 没有接住的所有情况。它自己不带条件 —— 就写 else: —— 下面再写它自己缩进的那一行。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩