Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- s = []
- def Count(elem):
- return elem.count("a") + elem.count("i") + elem.count("e") + elem.count("o") + elem.count("u")
- for i in range(n):
- s.append(input())
- s = sorted(s, key = len)
- s = sorted(s, key = Count, reverse = True)
- for i in s:
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement