Advertisement
Guest User

Untitled

a guest
May 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. {'2.3': ['0', '1'], '4.9': ['0', '1'], '4.7': ['0', '1'], '3.5': ['0', '1'], '2.4': ['0', '1'], '3.17': ['0', '1'], '4.8': ['0', '1'], '3.6': ['0']}
  2.  
  3. for x in sorted(dict_list.keys(), key=lambda x : float(x[:len(x)-1])):
  4. print(x)
  5.  
  6. 2.3, 2.4, 3.5, 3.6, 3.17, 4.9, 4.7, 4.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement