daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Sep 14th, 2017 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top