title: Spyder error: 'int' object is not callable but no error in different IDE
body: <p>I have this weird problem i need help with. I have this code I want run in Spyder but I keep getting error stating </p>
  
  <p>TypeError: 'int' object is not callable.</p>
  
  <pre><code>s ='abcdefgbobaaaaabob'
  end = 3
  bobs = 0
  for i in range(len(s)):
      finder = s[i:end]
      if finder == 'bob':
          bobs += 1
      end += 1
  print('Number of times bob occurs is: '+ str(bobs))
  </code></pre>
  
  <p>The weird part is that when I run the same code in IDLE, it works fine and gives the results I needed. I even tried running the code in pythontutor.com, no error.</p>
  
  <p>Can someone please tell why this is happening!?</p>