0
If last letter in a word is vowel
trying to figure out how can I use lambda and remove any word in input that ends with vowel.
1 Answer
0
Using lambda :)
string = input()
f = lambda s: s[:-1].upper() if s[-1] in "AEIOU" else s
print( f(string) )
trying to figure out how can I use lambda and remove any word in input that ends with vowel.