diff --git a/app/main.py b/app/main.py index 4ccbb02b..5838367f 100644 --- a/app/main.py +++ b/app/main.py @@ -14,4 +14,10 @@ def count_occurrences(phrase: str, letter: str) -> int: :param letter: letter to find occurrences of it :return: count occurrences of letter in phrase """ - # write your code here + count_letter = 0 + + for character in phrase.lower(): + if character == letter.lower(): + count_letter += 1 + + return count_letter