# No error
input = 1
try(check_if_positive(input))
# Error as 0 is not a positive number
input = 0
try(check_if_positive(input))
# Error as -5 is not a positive number
input = -5
try(check_if_positive(input))
Run the code above in your browser using DataLab