word = input("Enter word :")
vowels=["a","b","i","o","u"]
vowels_present=False
for char in word:
if char.lower () in vowels:
vowels_present =True
break;
if vowels_present:
print("vowels are present")
else:
print("vowels are not present")
Output:-
Enter word :n
vowels are not present
Enter word :b
vowels are present
0 Comments