Ask 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 input by the user is a vowel word.

+2
Answers (1)
  1. 7 November, 15:07
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers