BILINGUAL WORD CARD · RANK 8

if

🚦 A smart signpost at a road fork

Executes a block of code only if the condition is true.

中文对照 · Chinese

🚦 岔路口的智能指路牌

如果条件成立就走进去执行代码,不成立就跳过。

Code example

if x > 0:
    print('Positive')
Explore 100 bilingual word cards →