# Author: James Tam # Version: Oct 19, 2016 def isZero(num): if (num == 0): return(True) else: return(False) # Students write this function that uses isZero def divide(numerator,denominator): # students need to write the code that will use the boolean # function (isZero) to prevent a division by zero error result = numerator/denominator return(result) def start(): num = divide(2,3) print(num) num = divide(2,0) print(num) start()