Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro997 committed Jan 10, 2025
1 parent 8ebe734 commit 95df154
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
def count_occurrences(phrase: str, letter: str) -> int:
# write your code here
pass
counter = 0
for count in phrase:
if count.upper() == letter.upper():
counter += 1
return counter

0 comments on commit 95df154

Please sign in to comment.