I'm doing GrokLearning NCSS Challenge Intermediate level and I'm wondering how to find out if the first character of each word in a list is a vowel, if it is then print it?
I've done this so far...
printing_words = []
word = input("Words: ")
b = word.split()
for w in b:
if w[0] == "a" or "e" or "i" or "o" or "u":
printing_words.append(w)
print(printing_words)
I expect an output of:
Words: ham ant egg apple banana
ant apple egg
In alphabetical order and all that
Help please?