Still new to Python so my apologies.. I'm trying to print out a list into blocks of letters. Specifically 7, but I'm not sure how to remove the commas and lines.
for index in range(0, len(populatedList), 7) :
print (populatedList[index:index 7])
CodePudding user response:
Following should work:
for index in range(0, len(populatedList), 7) :
print ("".join(populatedList[index:index 7]))