seq1_values = [5, 40, 180, 13, 30, 20, 25, 24, 29, 31, 54, 46, 42, 50, 67, 17,
76, 33, 84, 35, 100, 37, 110, 32, 112, 15, 123, 3, 130, 42]
def get_num_va
Your question is not super clear, but from what I understand, this is what you are looking for:
>>> def myPrint(L):
... maxLen = max(len(str(n)) for n in L)
... print ("|", "|".join(" "*(maxLen-len(str(i))) + str(i) for i in range(len(L))) + "|")
... print ("|", "|".join(" "*(maxLen-len(str(n))) + str(n) for n in L) + "|")
...
>>> myPrint([5, 40, 180, 13, 30, 20, 25, 24, 29, 31, 54, 46, 42, 50, 67, 17,
... 76, 33, 84, 35, 100, 37, 110, 32, 112, 15, 123, 3, 130, 42])
| 0| 1| 2| 3| 4| 5| 6| 7| 8| 9| 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 20| 21| 22| 23| 24| 25| 26| 27| 28| 29|
| 5| 40|180| 13| 30| 20| 25| 24| 29| 31| 54| 46| 42| 50| 67| 17| 76| 33| 84| 35|100| 37|110| 32|112| 15|123| 3|130| 42|