by jeremiahwv · 8y ago · 0 comments
sum(planet['moons'] for planet in target['system']['planets'])
sum(planet.get('moons', 0) for planet in target['system']['planets'])