Skip to content

Instantly share code, notes, and snippets.

@alacret
Created August 13, 2019 02:27
Show Gist options
  • Save alacret/0b9d07b344ffab555bbf5ee0e46a548f to your computer and use it in GitHub Desktop.
Save alacret/0b9d07b344ffab555bbf5ee0e46a548f to your computer and use it in GitHub Desktop.
def multiplication_table(rows,cols):
result = []
for row in range(rows):
result_row = []
for col in range(cols):
result_row.append((row + 1) * (col + 1))
result.append(result_row)
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment