Remove Vowel

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

Comments (0)

  • To add your comment please or

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

Got It!