Re: need a variation algorithm for Lists in Dictionaries

2007-07-04 Thread Paddy
On Jul 5, 3:58 am, "Marc Stuart" <[EMAIL PROTECTED]> wrote: > Hi, I am trying to create a function, where I pass a dictionary with a > lits of strings, and try to return a > a list of strings, for all variations, any ideas ? > Thanks > > def getAllVariants(someDict): > keys = someDict.keys(

Re: need a variation algorithm for Lists in Dictionaries

2007-07-04 Thread Alex Martelli
Marc Stuart <[EMAIL PROTECTED]> wrote: > Hi, I am trying to create a function, where I pass a dictionary with a > lits of strings, and try to return a > a list of strings, for all variations, any ideas ? > Thanks > > def getAllVariants(someDict): > keys = someDict.keys() > for x in ke

need a variation algorithm for Lists in Dictionaries

2007-07-04 Thread Marc Stuart
Hi, I am trying to create a function, where I pass a dictionary with a lits of strings, and try to return a a list of strings, for all variations, any ideas ? Thanks def getAllVariants(someDict): keys = someDict.keys() for x in keys: print len(someDict[x])