a guest Dec 6th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def countLetterString(searchChar, fileName):
  2.         count = 0
  3.         for currentChar in open(fileName):
  4.             if currentChar == searchChar:
  5.                 count += 1
  6.         print("Total search character count is: ")
  7.         print(count)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand