Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def a(self, b):
- c = [
- *b['d']['e'],
- *[f['e'] for f in b['g']]
- # sum of b.d.e and all g.e of b
- ]
- return [
- list({d['h']:d for d in c}.values())
- # list of d made in c made unique through hs
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement