diff --git a/app/main.py b/app/main.py index 116fc30a..5e4a64d9 100644 --- a/app/main.py +++ b/app/main.py @@ -1,3 +1,7 @@ - def count_occurrences(phrase: str, letter: str) -> int: - return phrase.lower().count()(letter.lower()) + count = 0 + for char in phrase: + + if char.lower() == letter.lower(): + count += 1 + return count