You are viewing a single comment's thread. Return to all comments →
Thanks for sharing.
I did something like this.
def catAndMouse(x, y, z): return 'Cat A'*(abs(z-x)<abs(z-y))+'Cat B'*(abs(z-x)>abs(z-y))+'Mouse C'*(abs(z-x)==abs(z-y))
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 →
Thanks for sharing.
I did something like this.