Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. def list_of_dicts_to_dict_with(listobj, key='sn'):
  2.     return {y.get(key): y for y in listobj}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement