RapidR3D

DISEMVOWEL(remove vowels from string)

Mar 13th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def disemvowel(string):
  2.     vowels = ("a", "e", "i", "o", "u", "A", "E", "I", "O", "U")
  3.     newstr = ''.join([l for l in string if l not in vowels])
  4.     return newstr
Add Comment
Please, Sign In to add comment