Skip to content

Instantly share code, notes, and snippets.

@mtask
Created May 12, 2016 16:17
Show Gist options
  • Save mtask/ef03f836084516862f7217ac09ae3bbd to your computer and use it in GitHub Desktop.
Save mtask/ef03f836084516862f7217ac09ae3bbd to your computer and use it in GitHub Desktop.
Python3 multi column print
#Creating big list
l = []
for i in range(255):
l.append(i)
#Print list in three columns
count = 1
for a in l:
if count % 3 == 0:
print(a)
else:
print(a, end='\t')
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment