I have an assignment to create a counting down for loop. The instructions are to get the results to be as follows:
12345
1234
123
12
1
I'm probably making this to be more difficult than it actually is, but I'm quite new to Python.
So far, my script is as follows:
def print_figure():
for i in range(5, 0, -1):
for count in range(i):
print(12345, end='')
print()
Which is resulting in:
1234512345123451234512345
12345123451234512345
123451234512345
1234512345
12345
I'm not asking for an answer, just a pointer in the right direction of where I can make a fix.