[Python] Vowel Checker Not recognizing uppercase letters [closed]

Discussão em 'Python' iniciado por Stack, Junho 11, 2025.

  1. Stack

    Stack Membro Participativo

    My Vowel checker is not working properly when I put lowercase letters the output is True (means it's a vowel) but when I put uppercase letters (other than "A") it's showing False (not a vowel) for example I enter "I" its output is False.

    This is my code:

    def Vowel(text):
    vowels = {'a', 'e', 'i', 'o', 'u', 'A', 'E' 'I', 'O', 'U'}

    return text in vowels

    print(Vowel("")) #the Vowels in the function


    How to fix that?

    Continue reading...

Compartilhe esta Página