title: Is there a reason I'm getting this Python type mismatch?
body: <p>When I run this, I get the following type mismatch error, and I have no clue why var is being considered as a string rather than an int. Is there anything I'm missing here? </p>
  
  <pre><code>`Traceback (most recent call last):
    File "main.py", line 5, in &lt;module&gt;
      test.assert_equals(productFib(4895), [55, 89, True])
    File "/home/codewarrior/solution.py", line 7, in productFib
      while var &lt;= prod:
  TypeError: unorderable types: str() &lt;= int()`
  </code></pre>
  
  <pre><code>def productFib(prod):
      # create Fibonacci array
      var = 0
      elem = 0
      boo = False
      while var &lt;= prod:
          var = fib(elem)*fib(elem+1)
          if var == prod:
              boo = True
          elem += 1
      return [fib(elem), fib(elem+1), boo]
  
  # function to return what the nth fibonacci number is    
  def fib(n):
      if n &lt; 0: 
          return "Incorrect input"
      elif n == 1:
          return 0
      elif n == 2:
          return 1
      else:
          return fib(n-1)+fib(n-2)
  
  </code></pre>