Define a function called isPositive that takes a parameter containing an integer value and returns True if the paramter is positive or False if the parameter is negative or 0.
def isPositive(int):
if int>0:
return True
else:
return False
Quiz, Objective, Multiple Choice Question (MCQ), Test Bank Solution and Short Answers.