Menu
  • HOME
  • TAGS

counting occurence of a word in a text file using python

python,file,python-textprocessing

You're using count wrong. Try this: occurence = val.count(sub) ...