HELP: Creating dynmaic variable names

Ganesan R rganesan at myrealbox.com
Thu Mar 6 04:04:56 EST 2003


>>>>> "Alex" == Alex Martelli <aleax at aleax.it> writes:

> hashes = {}
> for i in range(N):
>     onemoreentry = "compute it however you wish to"
>     hashes.append(onemoreentry)

I am sure you meant to say "hashes = []" :-)

-- 
Ganesan R





More information about the Python-list mailing list