How to check if numbers in a list add up to a certain number? : <p>e.g 
a = [7,8,8,9,4]
--> would give three points. Since <strong>7 + 8</strong> (8 at index --> 0), <strong>7 + 8</strong> (8 at index --> 1), <strong>9 + 4</strong> all equal 15</p>

<p>How do you write a code to do this in python?</p>
