Question #322236

User inputs a word. Programmesays if it has vowels or not

Expert's answer

inp_string = str(input())
VOWELS = 'aeiou'
for i in range(5):
    if VOWELS[i] in inp_string.lower():
        print("There're vowels")
        break
else:
    print("There aren't vowels")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS