x = 10 #stores 10 in x while x>0: #if x>0 enters loop print(x) #prints value of x x-=1 #substracts 1 to x same as x=x-1 #result: 10,9,8,7,6,5,4,3,2,1