Thanks for your help Justin.  I would like an example.

*"It would be better to just build up a dictionary directly within that 
> word loop. That way you have a unique mapping of words to their 
> occurrences. Then you can use sorted(words.items(), words.get) in order to 
> sort the words by their value, in reverse order. That resulting list will 
> let you slice off the last three, which will be the (key, val) tuples. You 
> will no longer have issues with managing separate key/value lists. Let me 
> know if you want the example"*



Regarding the zipping of two lists to make a dictionary. I haven't noticed 
any disassociate of key and values in the process. The length of the list 
did shrink but only because the zipping process removes duplicates. So 
instead of seeing the word AND appear 24 times, in the zipped dictionary it 
appeared only once like this {'AND':24}





-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/0a706b57-0c97-4930-ae92-7dcb9902fb7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to