Getting word frequencies from files which are in folder.

Irmen de Jong irmen.NOSPAM at xs4all.nl
Wed Apr 4 14:44:35 EDT 2007


krisbee1983 at gmail.com wrote:
> Hello to all,
> 
> I'm beginer in learning Python I wish somebody help me with solving
> this problem.  I would like to read all text files wchich are in some
> folder. For this text files I need to make some word frequencies using
> defined words like "buy", "red", "good". If some file don't have that
> word will get "0" for this frequency. It shoud be stored in array. If
> I have alredy got frequencies for every file in folder, my array wrote
> to text file.

This sounds suspiciously like a homework assignment.
I don't think you'll get much help for this one, unless
you show some code you wrote yourself already with a specific
question about problems you're having....

--Irmen



More information about the Python-list mailing list