From 844bb2f108e3b76ab419fcbb115431f2d1d9a81b Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 21 Feb 2024 15:15:41 +0900 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 8da01a5..8920f17 100644 --- a/server.py +++ b/server.py @@ -469,8 +469,8 @@ def calculate_vowel_ratio(s): if length == 0: return 0.0 - # Count the number of vowels ('a', 'e', 'i', 'o', 'u') in the string. - vowel_count = sum(1 for char in s if char.lower() in 'aeiou') + # Count the number of vowels ('a', 'e', 'i', 'o', 'u', 'y') in the string. + vowel_count = sum(1 for char in s if char.lower() in 'aeiouy') # Calculate the ratio of vowels to the total length of the string. vowel_ratio = vowel_count / length