On 9/3/11 2:33 AM, dkrumm wrote:
Is there a data structure in Python that would allow me to do the
following:
I have a list of positive integer pairs, say [[1,2], [1,3], [2,5]].
For each pair [i,j] in my list I need to store in memory a number
c[i,j] which is a floating point number with some la
The dictionary is exactly what I needed. Thanks!
On Sep 3, 3:56 am, Simon King wrote:
> Hi dkrumm,
>
> On 3 Sep., 09:33, dkrumm wrote:
>
> > Is there a data structure in Python that would allow me to do the
> > following:
>
> > I have a list of positive integer pairs, say [[1,2], [1,3], [2,5]].
Hi dkrumm,
On 3 Sep., 09:33, dkrumm wrote:
> Is there a data structure in Python that would allow me to do the
> following:
>
> I have a list of positive integer pairs, say [[1,2], [1,3], [2,5]].
> For each pair [i,j] in my list I need to store in memory a number
> c[i,j]
Indeed, it is just a Py