Learning Python: Changing value in list based on condition
<p>Sorry for the very basic question, but this is actually a 2-part question:</p>

<ol>
<li><p>Given a list, I need to replace the values of '?' with 'i' and the 'x' with an integer, 10. The list does not always have the same number of elements, so I need a loop that permits me to do this.</p>

<pre><code>a = ['1', '7', '?', '8', '5', 'x']
</code></pre></li>
<li><p>How do I grab the index of where the value is equal to '?'. It'd be nice if this show me how I could grab all the index and values in a list as well.</p></li>
</ol>
