[Tutor] FW: Having list in dict type
Mariappan, MaharajanX
m_mariappanX@trillium.com
Tue, 4 Dec 2001 02:30:22 -0800
> -----Original Message-----
> From: Mariappan, MaharajanX
> Sent: Tuesday, December 04, 2001 3:26 PM
> To: 'tutor@python.org'
> Subject: Having list in dict type
>
> Hi Folks!
>
> Is it posible for dictionary type's value part to be a list like below,
>
> { "key1", ["name", "value"]
> "key2", ["name", "value"]
>
> If yes,
>
> 1) how can I gennerate this data dynamically[ Asuume that I have all the
> sting values]
> 2) Hiw can I traverse and print all the strings from this data.
>
> TIA,
> Maharajan
>