title: Python newbie question - I can't figure out what my problem is exactly
body: <p>I'm completely new to Python and I've been trying to make a fibonacci program with it.</p>
  
  <pre><code>def fib(n):
      print 'n =', n
      if n &gt; 1:
          return n * fib(n - 1)
      else:
          print 'end of the line'
      return 1
  
  n = raw_input('Input number: ')
  int(n)
  fib(n)
  </code></pre>
  
  <p>When I try to run this program, I get the following error after entering the number:</p>
  
  <blockquote>
    <p>Input number: 5</p>
    
    <p>n = 5</p>
    
    <p>Traceback (most recent call last):</p>
    
    <p>File "fibonacci.py", line 11, in
    </p>
  
  <pre><code>fib(n)
  </code></pre>
    
    <p>File "fibonacci.py", line 4, in fib</p>
  
  <pre><code>return n * fib(n - 1)
  </code></pre>
    
    <p>TypeError: unsupported operand type(s)
    for -: 'str' and 'int'</p>
  </blockquote>
  
  <p>If I run the interpreter and import just the function (without the code after it), supply the value for n and call the function with the value as the parameter, it works.</p>
  
  <p>I tried converting the input to int since I thought it was a string problem but no dice. I don't really know where I went wrong so if you could please shed some light on the subject, it'll be much appreciated. </p>
  
  <p>I'd love to change the problem title to something specific but I don't really know what the problem is.</p>