Created
May 12, 2016 16:17
-
-
Save mtask/ef03f836084516862f7217ac09ae3bbd to your computer and use it in GitHub Desktop.
Python3 multi column print
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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