0
Input a string and print all the words which are ending with a vowel. String = "We love india".
4 Answers
+ 2
We love india
+ 1
vwl= [
'a',
'o',
'e',
'y',
'u',
'i'
]
res=[]
ls = input().split()
for i in ls:
if i[-1] in vwl:
res.append(i)
else:
continue