Add items in nested dictionaries based on ID number in python
<p>I have dictionaries nested in a list. The dictionaries are set up as follows:</p>

<p><code>{'ID': 123, 'Balance': 45, 'Comments': None}</code></p>

<p>I have multiple of these dictionaries in a list, so the list looks like this:</p>

<pre><code>[{'ID': 123, 'Balance': 45, 'Comments': None}, {'ID': 456, 'Balance': 78, 'Comments': None}]
</code></pre>

<p>What I'm trying to do, is check to see if there is already a dictionary with the ID from the input in the list, and if there is, add the Balance from the input. 
Is there any readable pythonic way to do this?</p>

<pre><code>data = [{'ID': 123, 'Balance': 45, 'Comments': None}, {'ID': 456, 'Balance': 78, 'Comments': None}]
any( inputData == item['ID'] for item in data )

inputData = 123
True
</code></pre>

python list dictionary nested