write a program to remove vowels from the string
Answers
Answered by
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