You need to fork it to change the values, in default it uses the column and line size of terminal to stop pascal generation (depending if the column or lines length of the console is shorter)
Awesome, lots of math and formatting and generators, but you can easily make the program a single line in various ways:
Use semicolons and replace the for loop with map and lambda
Use walrus operator, then combine lines into an expression such as a list display, and replace for loop with map and lambda (more readable and no “cheating” semicolons)
I could’ve replaced the variable names with its value but it would be a pain to change the value, your one liner actually solved the thing I was worrying about.
Ah, we meant make the output a triangle, not the code! Currently it’s very hard to see the diagonals and look at what numbers add up to the next row.
You’d need to pad each number to the biggest number’s length. (this will make the triangle very wide though.)
Use this link for a bigger console.
I was anticipating something a little different – I expected it to be the whole thing written in one line (which does seem to exist here) but all the options and methods are fun lol