I cant seem to figure this out. I need to write a while loop to output the numbers from 1 to 10, but no matter what I put it will not run. Here is what I have been stuck on:

a = 0

while a < 10 :

a += 1

print (a)

I dont understand why this does not work. I have found the exact formula on the same problem on other websites, all with the output numbers from 1 to 10 just like what I am looking for, but nothing works!

Please help!

Im running Python 2.7.2

Thank you!