r/codehs • u/Accomplished-Fox2301 • 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
View all comments
Show parent comment
1
u/Icy-Construction-513 Mar 30 '23
It’s python 3.0