How can I find the position of one element in a sentence compared to a same element?
<p>This sounds very strange, let me explain. I would like to know how i can find the positions of a word if it is shared by two different lists in python. For example:</p>

<pre><code>a =[i,am,using,the,internet]
b =[are,you,using,a,desktop]
</code></pre>

<p>It should be able to tell me positions 2 (from the first list, it just happens that's the position of it in both if them). I can see if any words are shared but I don't know how to find the position:</p>

<pre><code>if any(x in a for x in b):
</code></pre>

<p>Yet I cannot get this line to tell me the position of it. I know this is incredible simple, my friend is teaching me how to code.</p>