Question #237163

Remove Vowels in a Sentence

You are given a sentence. Write a program to remove all the vowels in the given sentence.

Note: Sentence has both lowercase and uppercase letters.Input

The first line of input is a string

N.Explanation

In the example given a sentence

Hello World, the sentence contains vowels e, o.So, the output should be

Hll Wrld


Expert's answer

vovel = ('a', 'e', 'i', 'o', 'u', 'y')
sentense = input()
new_sentense = ''
for char in sentense:
	if not (char.lower() in vovel):
		new_sentense += char
print(new_sentense)
LATEST TUTORIALS
APPROVED BY CLIENTS