Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
viki-kurylo committed Dec 4, 2024
1 parent 8ebe734 commit da19695
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
def count_occurrences(phrase: str, letter: str) -> int:
# write your code here
pass
lower_phrase = phrase.lower()
counter = lower_phrase.count(letter.lower())
return counter

0 comments on commit da19695

Please sign in to comment.