From 877cac0ed5d4f5a5df7fc8f14a256c8909c11502 Mon Sep 17 00:00:00 2001 From: Myroslav Vorobei Date: Thu, 16 Jan 2025 10:32:19 +0200 Subject: [PATCH] Solution --- app/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 37b9f338..e613d444 100644 --- a/app/main.py +++ b/app/main.py @@ -1,3 +1,2 @@ def count_occurrences(phrase: str, letter: str) -> int: - # write your code here - pass + return phrase.lower().count(letter.lower())