How do I make a 2-d list into a format where each 1-d list is put in a new line? For example, if I had a 2-d list with integers like:
alist = [[1, 2, 3, 4], [5, 6], [7, 8, 9, 10]]
Without using NumPy, how do you change it into a format like:
[1, 2, 3, 4] [5, 6] [7, 8, 9, 10]
I apologize for my bad description, I am a still quite new to python and help would be greatly appreciated
I tried using for loops like
for i in range(len(alist)): for j in range(len(alist[I])): print(a[i][j], end=' ')
But the results I have gotten dont seem to follow the format.