Created
          December 12, 2014 20:38 
        
      - 
      
- 
        Save fanzhang312/8e604ad5bb800048cc4c to your computer and use it in GitHub Desktop. 
    RemoveVowels
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def remove(text): | |
| for letter in text: | |
| if letter.lower() in ['a','e','i','o','u']: | |
| text = text.replace(letter, '') | |
| return text | |
| import re | |
| def anti_vowels(text): | |
| return re.sub("[aeiou]+", "", text) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment