Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def countInstanceOf(variable, word):
  2. x,instanceOf = 0,0
  3. for x in range(len(word)):
  4. if word[x] == variable:
  5. instanceOf = instanceOf + 1
  6. return instanceOf
Add Comment
Please, Sign In to add comment