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 19dab7d commit 42e002e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def count_occurrences(phrase: str, letter: str) -> int:
count = 0
for char in phrase:
if char == letter:
count += 1
return count
count = 0
for char in phrase:
if char == letter:
count += 1
return count

0 comments on commit 42e002e

Please sign in to comment.