• + 3 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])