Sun Aug 01 2021

Remove Vowel

File Name: remove-vowel.py

#!/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

We use cookies to improve your experience on our site and to show you personalised advertising. Please read our cookie policy and privacy policy.