Advertisement
Guest User

k

a guest
Dec 13th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def a(self, b):
  2.     c = [
  3.         *b['d']['e'],
  4.         *[f['e'] for f in b['g']]
  5.         # sum of b.d.e and all g.e of b
  6.     ]
  7.     return [
  8.         list({d['h']:d for d in c}.values())
  9.         # list of d made in c made unique through hs
  10.     ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement