Content
def isPositive (number) : try: if (number – 1 : return True else: return isPositive (number – 1) except: return False isPositive (30) True isPositive (0) False isPositive (-100) False isPositive (100) True
def isPositive (number) : try: if (number – 1 : return True else: return isPositive (number – 1) except: return False isPositive (30) True isPositive (0) False isPositive (-100) False isPositive (100) True