I am new to Python. I get while and for loops pretty well so far but I DO NOT understand the output of this code. Please explain this. I would most appreciate it.
4 3 2 0
Thank you for any help!
n = 3 while n > 0: print(n + 1, end=' ') n -= 1 else: print(n)Output:
4 3 2 0
Thank you for any help!