Skip to content
Merged
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
2 changes: 1 addition & 1 deletion strings/count_vowels.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def count_vowels(s: str) -> int:
1
"""
if not isinstance(s, str):
raise ValueError("Input must be a string")
raise TypeError("Input must be a string")

vowels = "aeiouAEIOU"
return sum(1 for char in s if char in vowels)
Expand Down