Skip to content
Open
Changes from all commits
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:
# write your code here
pass
return phrase.lower().count(letter.lower())
Comment on lines 1 to +2

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. According to the task description, you need to add a docstring that explains the function's purpose, parameters, and return value as the first statement inside the function.