for instance, i have a txt data called \'mazeline\' like this:
abcd cdae korp
So i first made 3 lists:
mazeline = readmaze.spli
Try this list comprehension:
[[int(i) for i in line.strip()] for line in open('file/path')]