Re: Assignments and Variable Substitution
by Srage other posts by this author
Aug 13 2007 12:15PM messages near this date
Re: Assignments and Variable Substitution
|
?ENJOY free satellite tv on your pc?
On Aug 13, 1:00 pm, brad <byte8b...@[...].com> wrote:
> I'd like to do something like this:
>
> var = '123'
> %s = [], %var
>
> So that, in the end, var is '123' and an empty list is named '123' as
> well. The list assignments are created during a loop.
>
> Thanks,
> Brad
You probably want to use a dictionary to store your lists... code
like:
variableDict = {}
variableDict[var] = ['value1', 'value2', 'value3']
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Brad
Evan Klitzke
Srage
|