Python Programming

Remove Vowel

Python programming of removing vowel from string

8/1/2021
0 views
remove-vowel.pyPython
#!/usr/bin/evn python

vowel = 'aeiouAEIOU'

# To take input from the user
myStr = input("Enter a string: ")

# Remove vowel from the string
noVowel = ""
for char in myStr:
   if char not in vowel:
       noVowel = noVowel + char

# Display the unvowel string
print(noVowel) 
    


#***** Output *****
# Enter a string: I love to write python code
# lv t wrt pythn cd
Pythonpython programmingcodingremoving vowelfind vowelfor loopiteration

Loading comments...

Related Examples

Deliver breaking news, insightful commentary, and exclusive reports.

Targeting readers who rely on our platform to stay ahead of the curve.

Contact Us: benzingaheadlines@gmail.com