Skip to content

Commit

Permalink
implement py-count-occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaemma committed Oct 12, 2024
1 parent 7e7a3ee commit 4820d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def count_occurrences(phrase: str, letter: str) -> int:
:param letter: letter to find occurrences of it
:return: count occurrences of letter in phrase
"""
# write your code here
return phrase.lower().count(letter.lower())

0 comments on commit 4820d22

Please sign in to comment.