From 3778689c4378beff4dd94a9fa7318da20bdc95bd Mon Sep 17 00:00:00 2001 From: Koziakov Hlib Date: Sun, 17 Nov 2024 21:20:59 +0200 Subject: [PATCH] implement py_count_occurrences --- 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())