title: How can I use a 'for' loop for just one variable in a function which depends on two variables?
body: <p>I just want to use the <code>for</code> loop for the <code>t</code> variable in my function:</p>
  
  <pre><code>l = []
  
  def func(s):   
      for i in range(1, 100):
          t = i
          p = t * 2 + s * 2
      return p
  
  l.append(func(10))
  
  print l
  </code></pre>
  
  <p>I want the value of t to go from 1 to 99 and and print a list of all the value, but I always end up getting <code>l = [218]</code>.</p>