How to avoid if/elif/else when one value corresponds with another?
<p>What's a concise way to express a direct correlation between (apple, banana) and (red, yellow).  Although it gets the result I need, I'm just not happy with this...</p>

<pre><code>if value == apple:
   result = red
elif value == banana:
   result = yellow
else:
   result = None
</code></pre>

<p>Tough to search for, or even work out what to title this question, but I'm sure it's a basic exercise. Isn't it?</p>
