Skip to content

Instantly share code, notes, and snippets.

@blackrobot
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blackrobot/85dc9bc61e02a0a720eb to your computer and use it in GitHub Desktop.
Save blackrobot/85dc9bc61e02a0a720eb to your computer and use it in GitHub Desktop.
Prints a multiplication table
print(*(' '.join('{:>2}'.format(x * y) for x in range(1, 10)) for y in range(1, 10)), sep='\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment