471,573 Members | 1,295 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

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 607

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.