Manipulating dictionaries within lists
<p>I have a list with dictionaries in it as below:</p>

<pre><code>wordsList = [
    {'Definition': 'Allows you to store data with ease' , 'Word': 'Database'},
    {'Definition': 'This can either be static or dynamic' , 'Word': 'IP'},
]
</code></pre>

<p>Essentially, what I want to do is:</p>

<ul>
<li>Be able to print each separate definition</li>
<li>Be able to print each separate word</li>
</ul>

<p>And so my question is: How do I do this? I only know how to do this with regular lists/dictionaries, not what I have here.</p>

<p>Essentially, these are "regular" lists/dictionaries.</p>

<p>You must understand, that a list in Python can contain any object, also dicts. Thus, neither the list nor the contained dicts become anyhow "irregular".</p>

<p>You can access anything inside your list/dict like that:</p>

<pre><code>word_def[index][name]
</code></pre>

<p>With appropriate values for index/name.</p>

<p>You can also iterate over the list (as shown by SSNR) and thus grab any of the dictionaries contained and deal with them like ordinary dicts.</p>

<p>You also can get hold of one of the dicts this way:</p>

<pre><code>one_dict = word_def[index]
</code></pre>

<p>Than just access the contents:</p>

<pre><code>value = one_dict[name]
</code></pre>

python list dictionary