title: Python while loop - without condition?
body: <p>I understand this code:</p>
  
  <pre><code>c = 5
  
  while c != 0:
      print(c)
      c -= 1
  </code></pre>
  
  <p><strong>Output will be</strong>:</p>
  
  <pre><code>5
  4
  3
  2
  1
  </code></pre>
  
  <p>But eventually the code below:</p>
  
  <pre><code>c = 5
  
  while c:
      print(c)
      c -= 1
  </code></pre>
  
  <p><strong>Gave me the same result.</strong></p>
  
  <p>I've read something about conversion into bool automatically? Does compiler knows if c > 0 then it would be true for the while loop, and if c = 0 then it would be false?</p>