for line in fin:
    numbers = line.replace('\n', '').split(' ')
list1 = []
for digit in numbers:
    list1.append(int(digit))
list_list.append(list1)
fin.close()
How can I import a string file into a list of lists?