Comment Comment by ziikutv You can also use a list comprehension like so.>>> sum([x['moons'] for x in target['system']['planets']]) parent ziikutv 8 years ago
>>> sum([x['moons'] for x in target['system']['planets']])