Skip to content

Commit 9120e22

Browse files
authored
docs: add docstring to count_vowels function
1 parent 3c88735 commit 9120e22

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

strings/count_vowels.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
def count_vowels(s: str) -> int:
2+
"""Count the number of vowels in a given string.
3+
4+
Args:
5+
s (str): Input string.
6+
7+
Returns:
8+
int: Number of vowels in the string.
29
"""
3-
Count the number of vowels in a given string.
10+
411

512
:param s: Input string to count vowels in.
613
:return: Number of vowels in the input string.

0 commit comments

Comments
 (0)