2 ms·That's a great example! Mind if I use it? ;)by mhashemi 8y agoThat's a great example! Mind if I use it? ;)ziikutv 8y agoYou can also use a list comprehension like so. >>> sum([x['moons'] for x in target['system']['planets']])