ValueError: invalid literal [closed]

enter image description here

I am trying to read a text file with the following matrix

2,1,1,3

2,1,2,3

1,1,2,3

3,G,3,1

Answer

with open("maze.txt","r") as fd:
    maze = [i.split(",") for i in fd.read().splitlines()]
print(len(maze[0]))
print(maze)