Skip to content

Instantly share code, notes, and snippets.

@Michaelgathara
Created January 26, 2021 02:39
Show Gist options
  • Save Michaelgathara/5619e9b186699ff7418d0c4676560d39 to your computer and use it in GitHub Desktop.
Save Michaelgathara/5619e9b186699ff7418d0c4676560d39 to your computer and use it in GitHub Desktop.
A simple python program to create a matrix
def buildMatrix(x, y):
for r in range(1,x):
for c in range(1,y):
n = r*c
print(n, end=' ')
print()
buildMatrix(5,5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment