diff --git a/app/main.py b/app/main.py index 37b9f338b..ab864b16b 100644 --- a/app/main.py +++ b/app/main.py @@ -1,3 +1,6 @@ def count_occurrences(phrase: str, letter: str) -> int: - # write your code here - pass + counter = 0 + for char in phrase: + if char == letter: + counter += 1 + return counter \ No newline at end of file