On Wednesday, November 30, 2011 8:32:39 PM UTC+8, Neal Becker wrote:
> I like to hash a list of words (actually, the command line args of my 
> program) 
> in such a way that different words will create different hash, but not 
> sensitive 
> to the order of the words.  Any ideas?

For each word of your list as the key, an object of a hash can be used further 
is stored as the value in the hash of the list of words.

Assume that word 1 is the key and the hash stored is a sentence that uses 
the key word 1.

This is very useful to learn vocabularies and writing sentences. 

 

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to