[Tutor] Dictionaries

Mike Yuen myuen@ucalgary.ca
Mon, 12 Nov 2001 16:21:02 -0700 (MST)


I have to use dictionaries for this particular portion.  I've got some
data in the following format:

1
 a b c
 d e f
 g h i

2
 j k l
 m n o
 p q r

And so on.

What I want to do is have 1, 2,... as keys in my dictionary and have each
of the next 3 rows as the data associated with the keys.  The problem i'm
having is that dictionaries are immutable add/delete stuff like lists
meaning I can't get the data to look like:

	{1: a,b,c,d,e,f,g,h,i}

So, if I can combine these 3 rows into 1 row, I can manipulate it easier later.
Any suggestions on how to get around this little dilemma i'm having.


Thanks,
M