Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def high(s):
  2. abc = []
  3. a = dict([[y,x] for x,y in enumerate(list(map(chr, range(97, 123))))])
  4. for x in s.split():
  5. abc.append(dict([i, x.count(i)] for i in sorted(x)))
  6. return [a[b] for b in abc[2]]
  7. print(high('volcano climbing boooom'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement