Feb-21-2018, 12:06 PM
I need to declare a list (a "matrix", in fact) by inserting new 2-dimensional lists into it, and i´m using append for that (code below):
M = [] for i in range (n): M.append([int(i) for i in input().split()])Is there a quicker way to do this?