title: TypeError: 'int' object is not callable (While working on google colaboratory)
body: <p>In python I got a &quot;TypeError: 'int' object is not callable&quot; during execution.</p>
  <p>I had read other posts but I still can't figure out why it is like this.</p>
  <pre><code># Python code to find if a number is
  # prime or not using divmod()
  
  # Given integer
  n = int(input(&quot;Enter a number&quot;))
  x = n
  
  # Initialising counter to 0
  count = 0
  while x != 0:
      p, q = divmod(n, x)
      x -= 1
      if q == 0:
          count += 1
  if count &gt; 2:
      print(n, 'is Not Prime')
  else:
      print(n, 'is Prime')
  </code></pre>
  <p>And, please note that it doesn't gives any error by replacing:</p>
  <p><code>n = int(input(&quot;Enter a number&quot;))</code> to <code>n = int(input(&quot;Enter a number&quot;))</code></p>
  <p>I have also provided a screenshot regarding my problem </p>
  <p><a href="https://i.stack.imgur.com/WaR4o.png" rel="nofollow noreferrer">image</a></p>
  <p>Answer if anybody knows, Appreciation for any suggestions and comments.</p>