python-writing q as a function of i in a for loop
<p>I'm completely new to python so forgive me if this question is stupid.I am try to code for a Fibonacci sequence and wanted to know if there is a way for me to write q as a function of i in a for loop.
like:   </p>

<pre><code> for i in range (1,x): 
    q(i)=q(i-1)+q(i-2)
</code></pre>