r/codehs • • Mar 18 '23

I need help with 7.4 Keeping Count

My code so far:

def count_occurrences(word, character):

for character in word:

return len(word(character))

print(count_occurrences("banana", "a"))

I cant figure it out pls help

1 Upvotes

2 comments sorted by