From db531762a6ffc27b30fde75bef87d7dfea2ca540 Mon Sep 17 00:00:00 2001 From: Serhii Loboda Date: Wed, 16 Aug 2023 13:13:47 +0300 Subject: [PATCH] Solution. --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 4ccbb02b..06d4c1fe 100644 --- a/app/main.py +++ b/app/main.py @@ -14,4 +14,5 @@ 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()) +