title: Why does Python say "Inappropriate Argument Type" for xrange?
body: <p>My code is:</p>
  
  <pre><code>def euler7():
      prime=1
      val=0
      for num in xrange(3, 9999999999, 2):
          for n in xrange(1, num):
              if num%n==0:
                  numb=0
                  break
              else:
                  numb=1
                  val=num
              if numb==1:
                  prime=prime+1
              if prime==10001:
                  return val
  </code></pre>
  
  <p>But, it says there is an Inappropriate argument type for the for loops. I dont know if that means that it is not seeing the values as integers, or what is happening. Thanks</p>