我正在尝试检查用户输入是否包含元音。但是,我只发现了如何一次检查一个元音,但不是全部。
vowel = ("a")
word = input("type a word: ")
if vowel in word:
print (f"There is the vowel {vowel} in your word")
else:
print ("There is no vowel in your word")
这似乎可行,但是如果我尝试将元音变量放入列表中,则会出现错误。["a","e","i","o","u"]
任何想法如何同时检查 eiou?