Computer Science, asked by parneet8436, 9 months ago

write a program to remove vowels from the string​

Answers

Answered by sushiladevi4418
1

Answer:

Python program to remove vowels from the string

Explanation:

string= input("Enter any string")

## enter any string

vowels=('a', 'e', 'i', 'o', 'u')

# vowels

for x in string.lower():

# convert the input string in lowercase

       if x in vowels: # check wether x is in vowels

           newstr = newstr.replace(x,"")  

# if yes then replace it

print(newstr)

## print new string

Similar questions