down for below welcome?
no i want the pattern in reverse order as in the image i sent. i think i will be able to create the pattern in upper half but lower half i do not want to create again. i thought I'll just reuse the upper pattern by reversing the order
You could do that, just reverse the upper list when printing
Yes I thought the same. Thanks. I've not yet started writing the code.
i am able to get this much. how do i append a print statement to a list?
You can't. You should append the line string to the list, then print them all. This way you could take the first half of the list (the upper part) and reverse it with list[::-1] when printing it
or just reversed(list)
That too works
Append a print statement to a list? What do you mean by that?
.append('-' * (firstRowDashEnd - 3))
I want to append the output of print statement to a list
Oh thanks I'll try
I'm afraid I still can't understand it, but I believe someone else here did
What he meant was append the strings printed to the list
Обсуждают сегодня