Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
def count_occurrences(phrase: str, letter: str) -> int:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is missing the required docstring. Please add the docstring as specified in the task description to explain the function's purpose, parameters, and return value.

# write your code here
pass
return phrase.lower().count(letter.lower())