pos;cat&apos;</span>, <span class="hljs-string">&apos;mouse&apos;</span>}
<span class="hljs-keyword">for</span> index <span class="hljs-keyword">in</span> <span class="hljs-built_in">ipairs</span>(list) <span class="hljs-keyword">do</span>
  <span class="hljs-built_in">print</span>(index, list[index])
<span class="hljs-keyword">end</span>
</code></pre>
<p><code>ipairs</code> takes our for loop and makes it iterate over each item in the list and gives us an <code>index</code> variable to work with inside the