Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {'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']}
- for x in sorted(dict_list.keys(), key=lambda x : float(x[:len(x)-1])):
- print(x)
- 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