From 9120e227b24b4f64eb537a05faf33115a6003299 Mon Sep 17 00:00:00 2001 From: Tithi Joshi Date: Mon, 19 Jan 2026 12:34:43 +0530 Subject: [PATCH] docs: add docstring to count_vowels function --- strings/count_vowels.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/strings/count_vowels.py b/strings/count_vowels.py index 8a52b331c81b..ad39bfff706d 100644 --- a/strings/count_vowels.py +++ b/strings/count_vowels.py @@ -1,6 +1,13 @@ def count_vowels(s: str) -> int: + """Count the number of vowels in a given string. + + Args: + s (str): Input string. + + Returns: + int: Number of vowels in the string. """ - Count the number of vowels in a given string. + :param s: Input string to count vowels in. :return: Number of vowels in the input string.