I am looking for a convenient way to create a list of lists for which lists in the list have sequential numbers. So far, I have only come up with a very unsatisfactory solution for rough printing (yes, I just use python for several weeks):
block0 = []
...
block4 = []
blocks = [block0,block1,block2,block3,block4]
I appreciate any help that works with something like nrBlocks = 5.
source
share