Tech Study

Write a Python program to find postive or negative number

Introduction

I have used python 3.7 compiler for debugging purpose.. I have used python 3.7 compiler for debugging purpose.

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")

Result

Write a Python program to find postive or negative number
Write a Python program to find postive or negative number

TaggedWrite a Python program to find postive or negative number

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more