• + 0 comments
    def catAndMouse(x, y, z):
        if abs(x-z)<abs(y-z):
            return 'Cat A' 
        elif abs(x-z)>abs(y-z):
            return 'Cat B' 
        elif abs(x-z)==abs(y-z):
            return 'Mouse C'