You are viewing a single comment's thread. Return to all comments →
def catAndMouse(x, y, z): if abs(x-z) == abs(y-z): return 'Mouse C' elif abs(x-z) > abs(y-z): return 'Cat B' elif abs(x-z) < abs(y-z): return 'Cat A'
Seems like cookies are disabled on this browser, please enable them to open this website
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
def catAndMouse(x, y, z): if abs(x-z) == abs(y-z): return 'Mouse C' elif abs(x-z) > abs(y-z): return 'Cat B' elif abs(x-z) < abs(y-z): return 'Cat A'