title: Creating fibonacci sequence generator (Beginner Python)
body: <p>Hi I'm trying to create a Fibonacci sequence generator in Python. This is my code:</p>
  
  <pre><code>d =raw_input("How many numbers would you like to display")
  
  a = 1
  b = 1
  
  print a
  print b
  
  for d in range(d):
      c = a + b 
      print c
      a = b
      b = c
  </code></pre>
  
  <p>When I ran this program, I get the error:</p>
  
  <pre><code>File "Fibonacci Sequence Gen.py", line 10, in &lt;module&gt;
      for d in range(d):
  TypeError: range() integer end argument expected, got str
  </code></pre>
  
  <p>Thanks for your help, I'm trying to teach myself python with basic projects. </p>