so say I have a list of lists
x = [['#', '#', '#', '#', '#'], ['#', '0', ' ', ' ', '#'], ['#', '#', '#', ' ', '#']]
Say I need to split this into 3 rows of strings, how do i do this?
Here is how I can do it BUT it is not scalable, say i had tons more lists, then I would have to write so many print statments. I thought about a for statment
print "".join(mlist[0])
print "".join(mlist[1])
print "".join(mlist[2])
I was thinking about something like this but it didn't work
zert = ""
total = 0
for a in mlist:
for b in a:
if total < 6:
print zert
total = 0
zert = ''
zert += b
total += 1
^ the problem above is that i would need to save a first, then iterate over it BUT just checking if there is not an inbuilt function? I tried ''.join(mlist) but that does work since its lists in a list?
Is there a simpler way to do this?