[Solved] function with arguments in python [closed]


def count(word, letter):
  count = 0
  for l in word:
    if l == letter:
      count = count + 1
  return count

word = raw_input('Enter a string:')
letter = raw_input('Enter a character:')
print count(word, letter)   

solved function with arguments in python [closed]