x = 40
if x < 10:
print('smaller')
elif x > 20:
print('bigger')
print('finish')
bigger finish
| python | meaning |
|---|---|
| < | less than |
| <= | less than or equal to |
| == | equal to |
| >= | greater than or equal to |
| > | greater than |
| != | not equal |
βisβ is stronger than β==β.