def getMaxValue(a, b, c): result = a if result < b: result = b if result < c: result = c return result # getMaxValue ends here def getMinValue(a, b, c): result = a if result > b: result = b if result > c: result = c return result # getMinValue ends here