I don't know if this is the best solution, but what I usually do is
create a list that matches the key:
mydict = {}
mylist = []
for x in range(1, 10):
key = raw_input("Enter the key: ")
mydict[key] = value
mylist.append(key)
You just have to change it to read from a file/hard code all
Forwarding to the list.
-- Forwarded message --
From: Laureano Arcanio <[EMAIL PROTECTED]>
Date: Wed, May 21, 2008 at 10:41 PM
Subject: Re: [Tutor] listing classes
To: Kent Johnson <[EMAIL PROTECTED]>
I'm building a light html serialize tool, it's going to be used to
build templ