Ask Question
21 July, 07:26

A vowel word is a word that contains every vowel. Some examples of vowel words are sequoia, facetious, and dialogue. Determine if a word input by the user is a vowel word.

+2
Answers (1)
  1. 21 July, 09:34
    0
    vowels = ("a", "e", "i", "o", "u")

    word = input ("Enter a word: ")

    is_all = True

    for c in vowels:

    if c not in word:

    is_all = False

    if is_all = = True:

    print (word + " is a vowel word.")

    else:

    print (word + " is not a vowel word.")

    Explanation:

    Initialize a tuple, vowels, containing every vowel

    Ask the user to enter a word

    Initially, set the is_all as True. This will be used to check, if every vowel is in word or not.

    Create a for loop that iterates through the vowels. Inside the loop, check if each vowel is in the word or not. If one of the vowel is not in the vowels, set the is_all as False.

    When the loop is done, check the is_all. If it is True, the word is a vowel word. Otherwise, it is not a vowel word.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A vowel word is a word that contains every vowel. Some examples of vowel words are sequoia, facetious, and dialogue. Determine if a word ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers