Answer to Question #322236 in Python for Chany

Question #322236

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

1
Expert's answer
2022-06-26T09:23:41-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS