From 799a8b7183ff50afb76c4abf329c50dcab9d9be2 Mon Sep 17 00:00:00 2001 From: taraskhom Date: Sun, 17 Nov 2024 16:03:49 +0200 Subject: [PATCH] adding-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())