469,282 Members | 1,732 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Re: list/tuple/dict question

bruce wrote:
a dict doesn't seem to work, as it is essentially a series of key/values,
which isn't exactly what i want...
so what do you think a variable namespace is?

as usual, Python works best if you use it to write Python program, and
in Python, the right way to store a collection of name/value pairs is to
use a dictionary:

stuff = {}

foo = []

stuff[foo[1]] = []


Aug 17 '08 #1
0 589

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.