Storing more than one key value in a tuple with python?
<p>I'm new to Python and still learning. I was wondering if there was a standard 'best practice' for storing more than one key value in a tuple. Here's an example:</p>

<p>I have a value called <code>'red'</code> which has a value of <code>3</code> and I need to divide it by a number (say 10). I need to store 3 values: Red (the name), 3 (number of times its divides 10) and 1 (the remainder). There are other values that are similar that will need to be included as well, so this is for red but same results for blue, green, etc. (numbers are different for each label).</p>

<p>I read around and I think way I found was to use nested lists, but I am doing this type of storage for a billion records (and I'll need to search through it so I thought maybe nested anything might slow me down).</p>

<p>I tried to create something like <code>{'red':3:1,...}</code> but its not the correct syntax and I'm considering adding a delimiter in the key value and then splitting it but not sure if that's efficient (such as <code>{'red':3a1,..}</code> then parse by the letter a).</p>

<p>I'm wondering if there's any better ways to store this or is nested tuples my only solution? I'm using Python 2.</p>
