Professional Documents
Culture Documents
num = 3
if num >= 0:
print("Positive or Zero")
else:
print("Negative number")
2. # In this program,
# we check if the number is positive or
# negative or zero and
# display an appropriate message
num = 3.4
if num > 0:
print("Positive number")
elif num == 0:
print("Zero")
else:
print("Negative number")
print(st)
5. x,y =8,8
elif (x == y):
st= "x is same as y"
else:
st="x is greater than y"
print(st)