Skip to content

Commit

Permalink
'Solution'
Browse files Browse the repository at this point in the history
  • Loading branch information
Danylo-Ok committed Nov 23, 2024
1 parent 8ebe734 commit 19dab7d
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
count = 0
for char in phrase:
if char == letter:
count += 1
return count

0 comments on commit 19dab7d

Please sign in to comment.