Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
shretsker committed Nov 24, 2024
1 parent 8ebe734 commit 62a7fca
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_case = phrase.lower()
count = lower_case.count(letter.lower())
return count

0 comments on commit 62a7fca

Please sign in to comment.