lists in dictonaries ?

Alex Martelli aleax at
Thu Sep 19 07:27:53 EDT 2002

Manuel Hendel wrote:

> Is it possible to put lists in dictionaries? And is it also possible
> to put multiple lists in a dictionary for one key?

Yes to the first, no to the second (stricto sensu).  Lists are OK
as values in dictionaries.  But a dictionary has ONE value "for
one key".  You can make that value a list of lists, a tuple of
lists, and so on, but not, strictly speaking, "multiple" anythings.


More information about the Python-list mailing list