list comprehension replace for loop in 2d matrix,Cordi1 = [[int(i) for i in line.split()] for line in data]