Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. words = list(input())
  2. ans = words[:]
  3. vowel ='aeiou'
  4. vowels = []
  5.  
  6. for word in words:
  7. if word in vowel:
  8. vowels.append(word)
  9. count_vowel = 0
  10. count = 0
  11. for word in words:
  12. if word in vowel:
  13. count_vowel += 1
  14. ans[count] = vowels[len(vowels)-count_vowel]
  15. count += 1
  16. print(''.join(ans))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement