I have a list with 2,500 items. I want to print the first 50 items in a line and the next 50 items in the next line. So there will be a total of 50 lines with 50 items in each line.
myList = ['item1', item2,..., 'item2500']
line1 = item1, item2, ..., item50
line2 = item51, item52,...., item100
.
.
line 50 = item2451, item2452,...., item 2500
Tried some while loops but it didn't quite work out. Is there a built-in functions or an easier way to do this? Thank you.