Dictionary limitation
pauljolly at my-deja.com
pauljolly at my-deja.com
Fri Aug 4 07:51:00 EDT 2000
Dear All,
I have a query regarding dictionaries. Say I want to define a
dictionary to do with fruits as follows:
fruitDictionary={'apple':applePriceList, 'banana':bananaPriceList....}
where the value refers to the name of a list of the prices of apples
that I will add to as I find prices. Is there any way when I define the
dictionary, that I can initialise the lists to zero length (ie temp=[])
at the same time?
Your help much appreciated.
Best regards,
Paul Jolly
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list