From cb2efb36ca86c45ac7b4975f0e32181fd134e73f Mon Sep 17 00:00:00 2001 From: Ihor Hranetskyi Date: Sat, 19 Aug 2023 11:41:25 +0300 Subject: [PATCH] Solution --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 4ccbb02b..8b0f5717 100644 --- a/app/main.py +++ b/app/main.py @@ -14,4 +14,4 @@ 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 + return phrase.lower().count(letter.lower())