Created
March 8, 2023 21:02
-
-
Save R3DHULK/2309a303bcb94b17bbddcf9a476d6cd3 to your computer and use it in GitHub Desktop.
Matrix In Python
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
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