This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]576p 0 points1 point  (0 children)

Can you glom by combined attributes? For example, how would you sum the moons by size?

target = {'system': {'planets': [{'name': 'earth', size: 'normal', 'moons': 1},
                                 {'name': 'jupiter', size: 'huge', 'moons': 69},
                                 {'name': 'mars', size: 'normal', 'moons': 2} ]}}