Advertisement
CosmicFox33

-4

Nov 23rd, 2022
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. n = int(input())
  2. s = []
  3. def Count(elem):
  4.     return elem.count("a") + elem.count("i") + elem.count("e") + elem.count("o") + elem.count("u")
  5. for i in range(n):
  6.     s.append(input())
  7. s = sorted(s, key = len)
  8. s = sorted(s, key = Count, reverse = True)
  9. for i in s:
  10.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement