Most concise way to define multiple variables
<p>I have data consisting of about 10,000 entries. Each row is a price for a product in a specific currency. For example:</p>

<pre><code>- Purchase 1 = 10.25 USD
- Purchase 2 = 11.76 SEK
</code></pre>

<p>I have ten different database columns to total sales for each currency (this is a requirement). The columns are <code>earnings_in_usd</code>, <code>earnings_in_sek</code>, <code>earnings_in_eur</code>, etc. In my function to do an insert statement to the database, I need to define the necessary variable. By default all other entries will be 0.00. This is basically the code that would accomplish what I need to do:</p>

<pre><code>if currency == 'USD':
    earnings_in_usd = value
elif currency == 'SEK':
    earnings_in_sek = value
elif ...
</code></pre>

<p>Is there a more straightforward way to do this (a way do to something like earnings_in_$ = value)?</p>
