while loop count down code example
Example: python countdown from 20 down to 0
x = 20
while True:
print(x)
x -= 1
if x == 0:
break
for x in range(20, 1):
print(x)
x = 20
while True:
print(x)
x -= 1
if x == 0:
break
for x in range(20, 1):
print(x)