title: Why does this while loop make the program print out my sentence infinite times?
body: <pre><code>x = 1
  while True:
      print("This is line number %d"%(x))
      x += 1
  </code></pre>
  
  <p>It seems logical to me that I equal x with number 1. So the next line says: "While it's true that x equals one, print out this sentence.".. But then I put the line "x += 1", which means that x will get bigger everytime... So x should be equal to number 2 the second time around, so "x = 1" is NOT True, so why does it still keep printing then? I don't undertsand While loops very well so if someone could explain it to me it would be great! </p>