Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take input a matrix using map in python

s = 3
a = []
for i in range(s):
    res = list(map(int, input().split(' ')))
    a.append(res)
print(a)
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #input #matrix #map #python
ADD COMMENT
Topic
Name
2+5 =