Is there a way of getting an item from a list by searching its position in python
<p>If I have a list of items e.g words=['Hi','I'm','a','computer']. Is there any way I can get the item with the index so it would look something like this...</p>

<p>Input:</p>

<blockquote>
  <p>print(words.index(2))</p>
</blockquote>

<p>Output:</p>

<blockquote>
  <p>I'm</p>
</blockquote>

<p>So in conclusion i am looking for a way to reverse the index() function and use the index to search an object rather than an object to find the index.</p>

<p>Lists in python are like arrays in Java, C or other languages. Just index them.</p>

<pre><code>words[1]
</code></pre>

python indexing