Loops‎ > ‎

if else ...

 

if a>0:
    print('x is positive')
else:
    print('x is negative')




if a>0:
    print('x is positive')
elif x==0:
    print('x is zero')
else:
    print('x is negative')


operators
== equal
!= not equal
greater than
>= greater than or equal
smaller than
<= smaller than or equal