Skip to content

Commit

Permalink
Merge pull request #2 from REDonkey/dev
Browse files Browse the repository at this point in the history
Solution after changes
  • Loading branch information
REDonkey authored Oct 30, 2024
2 parents 5d884fe + 7966d54 commit 2e2697e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
def count_occurrences(phrase: str, letter: str) -> int:
occurrences_count = 0
for letter_phrase in phrase.lower():
if letter_phrase == letter.lower():
occurrences_count += 1
return occurrences_count


print(count_occurrences("letter", "t"))
return phrase.lower().count(letter.lower())
1 change: 0 additions & 1 deletion file_new_for_test

This file was deleted.

0 comments on commit 2e2697e

Please sign in to comment.