diff --git a/strings/frequency_finder.py b/strings/frequency_finder.py index 98720dc36d6e..2041fe50d75f 100644 --- a/strings/frequency_finder.py +++ b/strings/frequency_finder.py @@ -36,6 +36,8 @@ def get_letter_count(message: str) -> dict[str, int]: + """get_letter_count() takes message as a parameter, which should be a string. + It returns a dictionary where the string is a key and an integer is a value.""" letter_count = dict.fromkeys(string.ascii_uppercase, 0) for letter in message.upper(): if letter in LETTERS: @@ -45,6 +47,7 @@ def get_letter_count(message: str) -> dict[str, int]: def get_item_at_index_zero(x: tuple) -> str: + """Take a tuple x as a parameter and return a string.""" return x[0]