Skip to content

Instantly share code, notes, and snippets.

@accessnash
Created October 19, 2015 07:25
Show Gist options
  • Save accessnash/6f951886ce39df5815e2 to your computer and use it in GitHub Desktop.
Save accessnash/6f951886ce39df5815e2 to your computer and use it in GitHub Desktop.
"""Produce a multiplication table from a tuple of two-element tuples"""
data = ((1, 1), (2, 2), (12, 13), (4, 4), (99, 98))
for a, b in data:
print("{:>4} = {:>2} X {:>2}".format(a*b, a, b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment