We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Why is the platform not providing the INPUT/OUTPUT format they are looking for? Is the goal to test whether one can multiply a 2x2 matrix, or to test whether one knows how to parse INPUT data from commande line ?
Be specific!
if name == 'main':
## Read code fron STDIN
n = 2 # Number of rows/columns
matrix1 = [list(map(int, input().split())) for _ in range(n)]
matrix2 = [list(map(int, input().split())) for _ in range(n)]
Linear Algebra Foundations #3- Matrix Multiplication
You are viewing a single comment's thread. Return to all comments →
Why is the platform not providing the INPUT/OUTPUT format they are looking for? Is the goal to test whether one can multiply a 2x2 matrix, or to test whether one knows how to parse INPUT data from commande line ?
Be specific!
if name == 'main': ## Read code fron STDIN n = 2 # Number of rows/columns matrix1 = [list(map(int, input().split())) for _ in range(n)] matrix2 = [list(map(int, input().split())) for _ in range(n)]