From 2476a49d0f2c6750401e5868345d605f41811196 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Jun 2026 19:38:07 -0300 Subject: [PATCH 1/2] Solution --- app/main.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/main.py diff --git a/app/main.py b/app/main.py new file mode 100644 index 0000000..3a90fc9 --- /dev/null +++ b/app/main.py @@ -0,0 +1,4 @@ +def count_occurrences(phrase: str, letter: str) -> int: + # write your code here + pass + return phrase.lower().count(letter.lower()) \ No newline at end of file From 09cbbe77b32b79273aac38d92c86a896b89179f0 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 23 Jun 2026 19:48:53 -0300 Subject: [PATCH 2/2] Solution changed --- app/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 3a90fc9..e613d44 100644 --- a/app/main.py +++ b/app/main.py @@ -1,4 +1,2 @@ def count_occurrences(phrase: str, letter: str) -> int: - # write your code here - pass - return phrase.lower().count(letter.lower()) \ No newline at end of file + return phrase.lower().count(letter.lower())