Remove Vowels in a Sentence
You are given a sentence. Write a program to remove all the vowels in the given sentence.
The first line of input is a string
In the example given a sentence
Hello World, the sentence contains vowels e, o.So, the output should be
Hll Wrld
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)
Comments
Leave a comment