Local variables and while loops (2)

variables used in a while loop are NOT local:

n = 0
while n < 10:
  n = n+1

print n

prints:

10