# module my_math # # this module contains a few short math functions # # started by e.bonakdarian oct 2009 # ################################################# def isEven(num): # determines if the num provided is even # (ie divisible by 2) or or not. Returns # a Boolean value # # True - num is even # False - num is odd (not even) even = False if (num % 2) == 0: even = True return even ################################################# def absolute(num): # returns the absolute value of the num # provided. pass ################################################# def average3(val1, val2, val3): # computes and returns the average of the # three values provided pass ################################################# def sumInts(start, end): # returns the sum of integers in range # [start, end] - note this is an inclusive # range. # if end < start return the special value None # pass ################################################# def maxVal(val1, val2): # returns the larger of these two values pass ################################################# def minVal(val1, val2): # returns the smaller of these two values pass ################################################# def cm2inch(cm_val): # given a value in centimeters, it returns the # corresponding value in inch pass ################################################# def inch2cm(inch_val): # given a value in inches, it returns the # corresponding value in centimeters pass if __name__ == '__main__': pass # use this section here to test your code.