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
Math,
5 months ago
Computer Science,
5 months ago
Physics,
9 months ago
Math,
9 months ago
Math,
11 months ago
Environmental Sciences,
11 months ago