Unable to print output

I am trying to practice while loop and below is my code
a=10
while a>0:
print(a)
a-=1
whenever I run this code, the next area gets selected.