[ad_1]
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)
[ad_2]
solved function with arguments in python [closed]