title: Python, using ints as loop condition
body: <p>I don't know if this has been asked before but here I go.</p>
  
  <p>A while loop takes a bool, something like while a&lt;5 or while True and proceeds to do something.</p>
  
  <pre><code>n = 10000
  count = 0
  while n:
    count = count + 1
    n = n / 10
    n=int(n)
  
  print (count)
  </code></pre>
  
  <p>This code will execute the while loop, but why, I understand that I could use 1 instead of True, but here it's going like "while 10000", and 10000 != True, so how does that work?</p>