Answer to Question #237163 in Python for umesh

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


1
Expert's answer
2021-09-14T18:03:18-0400
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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS