try/except


x = 40
if x < 10:
    print('smaller')
elif x > 20:
    print('bigger')
print('finish')

bigger finish

Comparison operators

python meaning
< less than
<= less than or equal to
== equal to
>= greater than or equal to
> greater than
!= not equal

β€˜is’ is stronger than β€˜==’.