Code
# Demonstration of if-elif-else statements in python programs... num=int(input("Enter the number:")) if(num<0): print("Number is negative.") elif(num==0): ("Number is zero.") elif(num==999): ("Number is special.") else: print("Number is positive.") print("I am happy!!!")
Output
Enter the number:6 Number is positive. I am happy!!!