I have an array/list in Python containing 25 different words with different lengths:
items = ['Cat', 'Dog', 'Fish', .......... 'Yak']
I want to loop through the array and print 5 lines, one after the other, each line containing 5 strings I would tab between words to space them out evenly.
I have already tried using a 2D array(grid) and appending the word to individual array in grid but this does not seem to work as I cant implement any line breaks. Would I use \n somehow? The grid:
grid = [
[],[],[],[],[],
[],[],[],[],[],
[],[],[],[],[],
[],[],[],[],[],
[],[],[],[],[]
]
Is this even the right way to do this??
Thank you