Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def list_of_dicts_to_dict_with(listobj, key='sn'):
- return {y.get(key): y for y in listobj}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement