Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def disemvowel(text):
- text = [i for i in text if i!=' ']
- vowels = []
- for i in text:
- if i.lower() in "aeiou":
- vowels.append(i)
- text[text.index(i)] = ''
- return "%s\n%s" % (''.join(text), ''.join(vowels))
- print disemvowel(raw_input("word: "))
- print ''.join(map(lambda i: '\n'.join((''.join([i_ for i_ in i if i_ not in ("aeiou ")]), ''.join([i_ for i_ in i if i_ in "aeiou"]))),raw_input("word: "))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement