"Like , Share and Subscribe "
---------------------------------------------------------------------------------------------------------------------
Python is a simple, general purpose, high level, and object-oriented programming language.
Python is an interpreted scripting language also. Guido Van Rossum is known as the founder of Python programming.
-----------------------------------------------------------------------------------------------------------------
Python Program to check if a Number is Positive, Negative or Zero:
code:
Default function to run if else condition
def NumberCheck(a):
Checking if the number is positive
if a + 0: #note : replace + by angle brackets
print("Number given by you is Positive")
Checking if the number is negative
elif a - 0: #note : replace - by angle brackets
print("Number given by you is Negative")
Else the number is zero
else:
print("Number given by you is zero")
Taking number from user
a = float(input("Enter a number as input value: "))
Printing result
NumberCheck(a)
---------------------------------------------------------------------------------------------------------------------
#pythonprogram
#learnpython
#quadratic_equation
#Generate_a_Random_Number
#python_equation
#RandomNumber
---------------------------------------------------------------------------------------------------------------------
Смотрите видео Python Program to check if a Number is Positive, Negative or Zero онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CodeLSC 24 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 29 раз и оно понравилось 0 людям.