Skip to content

Instantly share code, notes, and snippets.

@R3DHULK
Created March 8, 2023 21:02
Show Gist options
  • Save R3DHULK/2309a303bcb94b17bbddcf9a476d6cd3 to your computer and use it in GitHub Desktop.
Save R3DHULK/2309a303bcb94b17bbddcf9a476d6cd3 to your computer and use it in GitHub Desktop.
Matrix In Python
matrix = [ [1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
for row in matrix:
for element in row:
print(element, end=" ")
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment