Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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