Ask Question
6 March, 20:07

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.

+1
Answers (1)
  1. 6 March, 22:24
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers