Skip to content

Instantly share code, notes, and snippets.

@JanneSalokoski
Created March 27, 2015 11:58
Show Gist options
  • Save JanneSalokoski/fd15cf7593f55cd5ebb3 to your computer and use it in GitHub Desktop.
Save JanneSalokoski/fd15cf7593f55cd5ebb3 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
ten = 0
for i in range(0, 256):
print("\033[48;5;{}m {:^5} ".format(i, i), end="")
#print("\n\033[48;5;0mi: {}\ni % 10: {}".format(i, i % 10))
if i % 10 == 0:
ten = i
if i == ten + 9:
print()
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment