diff --git a/python/tasks/task_05_count_vowels.py b/python/tasks/task_05_count_vowels.py index 957ebd1..1ce1987 100644 --- a/python/tasks/task_05_count_vowels.py +++ b/python/tasks/task_05_count_vowels.py @@ -4,4 +4,12 @@ def count_vowels(s: str) -> int: """ Vrátí počet samohlásek v řetězci. """ + vowels = "AEIOUaeiouÁÉÍÓÚáéíóúÄËÏÖÜäëïöü" + count = 0 + + for char in s: + if char in vowels: + count += 1 + + return count