<h3>What is Python and its program?</h3>
Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of other programs and isn't specialized for any specific problems.
Following are the python schedule to check input number is positive or negative:
Program: def is_positive(n):#defining the method is_positive that takes one variable in parameter
if (n > 0):#defining if block that check input number is positive
return True#return boolean value that is True
else:#else block
return "None"#return string value
n=int(input("Enter number: "))#defining n variable that input a number
print(is_positive(n))#using print process that calls and prints method return value
Output:
please find the connected file.
Program Explanation:
Defining the method "is_positive" that takes one variable "n" in the parameter.
Inside the method, if conditional block is determined that checks the input number is positive, if it's true, it will return a boolean value that is "True".
Otherwise, it will go to the else block, where it will produce a string value that is "None".
Outside the way, the "n" variable is declared to be an input number.
After the input value, a print method is used that calls the "is_positive" form and prints its return value.
To learn more about Python, refer
brainly.com/question/23916407
#SPJ9