Finding index of the same elements in a list
<p>Suppose I have to find each index of letter 'e' in the word "internet":</p>

<pre><code>letter = 'e'
word = 'internet'
idx = word.index(letter)
</code></pre>

<p>But this code gives only the first index. How can I find the rest of them?</p>
