Created
August 13, 2019 02:27
-
-
Save alacret/0b9d07b344ffab555bbf5ee0e46a548f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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