I am very new to programming so please explain with examples.
I have a three dimensional array that I have filled, it started like this:
a = [[[0 for depth in range(0)] for row in range(20)] for col in range(20)]
Then I appended data to it as the calculations went on.
The output I want is a 2 dimensional array, indexed by column and range, where the entries of depth (ranging zero entries to 7 or 8) are listed.
Python does exactly what I want, but now I want to print it and look for the patterns I want by inspection. This needs a table that is not all over the place.
All help is appreciated.
For anyone really interested I am working on the 3x+1 problem.
I have a three dimensional array that I have filled, it started like this:
a = [[[0 for depth in range(0)] for row in range(20)] for col in range(20)]
Then I appended data to it as the calculations went on.
The output I want is a 2 dimensional array, indexed by column and range, where the entries of depth (ranging zero entries to 7 or 8) are listed.
Python does exactly what I want, but now I want to print it and look for the patterns I want by inspection. This needs a table that is not all over the place.
All help is appreciated.
For anyone really interested I am working on the 3x+1 problem.

.
Comment