From d62ebf7274ae69e689bcec73ac0400e7f827f4ba Mon Sep 17 00:00:00 2001 From: Vivek Date: Sat, 20 Jun 2026 11:33:40 +0530 Subject: [PATCH 1/3] corrected the typos --- strings/camel_case_to_snake_case.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strings/camel_case_to_snake_case.py b/strings/camel_case_to_snake_case.py index 582907be2edb..a01b8e4c06bb 100644 --- a/strings/camel_case_to_snake_case.py +++ b/strings/camel_case_to_snake_case.py @@ -5,8 +5,8 @@ def camel_to_snake_case(input_str: str) -> str: >>> camel_to_snake_case("someRandomString") 'some_random_string' - >>> camel_to_snake_case("SomeRandomStr#ng") - 'some_random_str_ng' + >>> camel_to_snake_case("SomeRandomString") + 'some_random_string' >>> camel_to_snake_case("123someRandom123String123") '123_some_random_123_string_123' From 4e9b21ef6110de4a96a08573725d37a270fc33ad Mon Sep 17 00:00:00 2001 From: Vivek Date: Sat, 20 Jun 2026 16:52:56 +0530 Subject: [PATCH 2/3] added the docstrings in the functions --- strings/frequency_finder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/strings/frequency_finder.py b/strings/frequency_finder.py index 98720dc36d6e..24bef4050c3b 100644 --- a/strings/frequency_finder.py +++ b/strings/frequency_finder.py @@ -36,6 +36,9 @@ def get_letter_count(message: str) -> dict[str, int]: + '''get_letter_count() is a function that takes message as parameter which is + supposed to be the string. and it returns a dictionary where string is a key + and integer is a value.''' letter_count = dict.fromkeys(string.ascii_uppercase, 0) for letter in message.upper(): if letter in LETTERS: @@ -45,6 +48,7 @@ def get_letter_count(message: str) -> dict[str, int]: def get_item_at_index_zero(x: tuple) -> str: + '''It takes x as parameter which is tuple and returns a string.''' return x[0] From 70541940e060356b370c29c7ca89773ea11063ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:26:18 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- strings/frequency_finder.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/strings/frequency_finder.py b/strings/frequency_finder.py index 24bef4050c3b..e9da49799cc8 100644 --- a/strings/frequency_finder.py +++ b/strings/frequency_finder.py @@ -36,9 +36,9 @@ def get_letter_count(message: str) -> dict[str, int]: - '''get_letter_count() is a function that takes message as parameter which is - supposed to be the string. and it returns a dictionary where string is a key - and integer is a value.''' + """get_letter_count() is a function that takes message as parameter which is + supposed to be the string. and it returns a dictionary where string is a key + and integer is a value.""" letter_count = dict.fromkeys(string.ascii_uppercase, 0) for letter in message.upper(): if letter in LETTERS: @@ -48,7 +48,7 @@ def get_letter_count(message: str) -> dict[str, int]: def get_item_at_index_zero(x: tuple) -> str: - '''It takes x as parameter which is tuple and returns a string.''' + """It takes x as parameter which is tuple and returns a string.""" return x[0]