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
Operators
== equal
!= not equal
> greater than
>= greater than or equal
< smaller than
<= smaller than or equal