Input a string and print all the words which are ending with a vowel. String = "We love india". | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Input a string and print all the words which are ending with a vowel. String = "We love india".

11th Mar 2022, 3:25 PM
Mera Content
Mera Content - avatar
2 Answers
+ 2
We love india
11th Mar 2022, 3:27 PM
JaScript
JaScript - avatar
+ 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
11th Mar 2022, 4:45 PM
Shadoff
Shadoff - avatar