Advertisement
Guest User

Untitled

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