Advertisement
Guest User

Untitled

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