Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. x = str(input("Input your string"))
  2.  
  3. def vowel_remove(x):
  4. vowel = ("a", "e", "i", "o", "u", "A", "E", "I", "O", "U")
  5. if len(x) = 0:
  6. if x[0] in vowel:
  7. return(""+vowel_remove(x[1:]))
  8. else:
  9. return(x[0]+vowel_remove(x[1:]))
  10. else:
  11. return("")
  12.  
  13. print(vowel_remove(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement