else
↩️ The fallback path when 'if' is false
Runs when the preceding if condition is false.
中文对照 · Chinese
↩️ 另一条备选通道
当前面的 if 条件不满足时,自动走 else 这条路。
Code example
if score >= 60: pass
else: print('Try again')Explore 100 bilingual word cards →Runs when the preceding if condition is false.
↩️ 另一条备选通道
当前面的 if 条件不满足时,自动走 else 这条路。
if score >= 60: pass
else: print('Try again')Explore 100 bilingual word cards →