Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

# Program Discussion :: Basics

Home > Programs > Basics

4 / 265

## Write a program to remove the vowels from the input string.

Answer:

def anti_vowel(c):    newstr = c    vowels = ('a', 'e', 'i', 'o', 'u')    for x in c.lower():        if x in vowels:            newstr = newstr.replace(x,"")


#### Asked In :: IBM

Post Your Answer Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here:

Language:

Post Your Reply Here: