Let's say I have a list of dicts or objects, which effectively looks like this:
[
{'score': 5, 'tally': 6},
{'score': 1, 'tally': None},
{'score': None, 'tally': None},
]
What would be a Pythonic and concise way of creating a list of all ‘score’s and ‘tally’s that are not None? so the result would the following:
[5, 6, 1 ]