sum(planet['moons'] for planet in target['system']['planets'])
sum(planet.get('moons', 0) for planet in target['system']['planets'])