SEP-PYTHON

PROGRAM 1 PROGRAM 2 PROGRAM 3 PROGRAM 4 PROGRAM 5 PROGRAM 6 PROGRAM 7

PART B

PROGRAM B1 PROGRAM B2 PROGRAM B3 PROGRAM B4 PROGRAM B5 PROGRAM B6 PROGRAM B7 . . .

 
 
 
 #2. Write a Program to check if number is positive, negative or zero.
----------------------------------------
 num = float(input("Enter a number: ")) 
 if num > 0: 
       print("Number is Positive") 
 elif num < 0: 
       print("Number is Negative") 
 else: 
       print("Number is Zero")

OUTPUT
---------------------------------------