You are viewing a single comment's thread. Return to all comments →
PYTHON 3 def catAndMouse(x, y, z): if abs(x-z)>abs(y-z): return "Cat B" elif abs(x-z)==abs(y-z): return "Mouse C" else: 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 →
PYTHON 3 def catAndMouse(x, y, z): if abs(x-z)>abs(y-z): return "Cat B" elif abs(x-z)==abs(y-z): return "Mouse C" else: return "Cat A"