Here is one way to load a 10x10 list with integers from a text file ...
""" assume int10x10.txt looks like this -->
1212000200
1010222122
1100202011
2021112212
0221022122
2012101022
2020021121
0112202210
0122110121
1010102201
"""
import pprint
infile = open("int10x10.txt", "r")
# create a 10x10 list of zeros
list10x10 = [[0]*10 for k in range(10)]
for row, line in enumerate(infile):
# strip off trailing newline char
line = line.rstrip()
#print(line) # test
for col, c in enumerate(line):
#print(c, row, col) # test
# load the 10x10 list with integers
list10x10[row][col] = int(c)
pprint.pprint(list10x10)
''' my result -->
[[1, 2, 1, 2, 0, 0, 0, 2, 0, 0],
[1, 0, 1, 0, 2, 2, 2, 1, 2, 2],
[1, 1, 0, 0, 2, 0, 2, 0, 1, 1],
[2, 0, 2, 1, 1, 1, 2, 2, 1, 2],
[0, 2, 2, 1, 0, 2, 2, 1, 2, 2],
[2, 0, 1, 2, 1, 0, 1, 0, 2, 2],
[2, 0, 2, 0, 0, 2, 1, 1, 2, 1],
[0, 1, 1, 2, 2, 0, 2, 2, 1, 0],
[0, 1, 2, 2, 1, 1, 0, 1, 2, 1],
[1, 0, 1, 0, 1, 0, 2, 2, 0, 1]]
'''