diff --git a/src/vowels/checkvowels.py b/src/vowels/checkvowels.py index ed994e1..edb5e01 100644 --- a/src/vowels/checkvowels.py +++ b/src/vowels/checkvowels.py @@ -1,9 +1,21 @@ def is_character_vowel(char): + """ + Check if a given character is a vowel. + + Parameters: + - char (str): The character to be checked. + + Returns: + - bool: True if the character is a vowel, False otherwise. + """ vowels = "aeiouAEIOU" return char in vowels def main(): user_input = input("Enter a character: ") + """ + Main function to get user input and determine if the entered character is a vowel. + """ if len(user_input) == 1 and user_input.isalpha(): if is_character_vowel(user_input):