Write a Python program to find the path to a file or directory when you encounter a path name

Write a Python program to find the path to a file or directory when you encounter a path name

1
2
3
4
5
6
7
num = float(input("Input a number: "))
if num > 0:
   print("It is positive number")
elif num == 0:
   print("It is Zero")
else:
   print("It is a negative number")

Final output

Leave a Comment