You are viewing a single comment's thread. Return to all comments →
did the same except i always like to put the options together and the conditionals together for cleanliness
print(['Cat A','Cat B', 'Mouse C'][0 if abs(x-z) < abs(y-z) else 1 if abs(x-z) > abs(y-z) else 2])
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
did the same except i always like to put the options together and the conditionals together for cleanliness