CSC 207 - Quiz 4


Name:

Find five errors in the following function and describe how to correct them. Use the line numbers to the right to reference each error you find.

def minimum(x1, x2, x3):               1
    if (x1 < X2):                      2
        if (x1 < x3:                   3
            return x1                  4
        else:                          5
            return x3                  6
  else:                                7
        elif (x2 > x3):                8
            retrun x2                  9
        else                          10
            return x3                 11