Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def high(s):
- abc = []
- a = dict([[y,x] for x,y in enumerate(list(map(chr, range(97, 123))))])
- for x in s.split():
- abc.append(dict([i, x.count(i)] for i in sorted(x)))
- return [a[b] for b in abc[2]]
- print(high('volcano climbing boooom'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement