Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def shortenPlus(s):
- vowels = ['a', 'e', 'i', 'o', 'u']
- noVowels = ""
- index = 0
- for char in s:
- if char in vowels:
- if index == 0:
- noVowels += char
- else:
- noVowels += ""
- elif char == " ":
- noVowels += char
- index = 0
- else:
- noVowels += char
- index += 1
- return noVowels
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement