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