Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Vik-By committed Nov 13, 2023
1 parent e42f095 commit c2b0825
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +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
"""
phrase = phrase.upper()
letter = letter.upper()
return (phrase.count(letter))
return (phrase.upper().count(letter.upper()))

0 comments on commit c2b0825

Please sign in to comment.