Can I print something from a table using 2 sets of variables
<p>I am having trouble being able to print reference something from a list by using 2 variables.</p>

<pre><code>currentRow=4
currentRowText="row"+str(currentRow)
currentCol=3
currentLocType=currentRowText[currentCol]
print(currentRow,"&gt;",currentRowText,"&gt;",currentCol,"&gt;",currentLocType)
</code></pre>

<p>This prints out</p>

<pre><code>4 &gt; row4 &gt; 3 &gt; 4
</code></pre>

<p>however the last variable should be 'city' as it should be getting the data from</p>

<pre><code>row4=("grasslands", "forest", "forest", "city", "forest", "forest", "mountain")
</code></pre>

<p>Any help is appreciated.</p>

<p>Thanks in advance. </p>