I'm learning Python at the moment and I'm resolving easy problems to get the feeling of it.
I'm trying to read a text file and print the maze that is inside of it:
##########
##---##--#
#--------#
#---###--#
#--------#
##-------#
##########
For now I have the following:
file = open("maze.txt", "r")
maze = file.readlines()
print(maze)
for i in range(len(maze)):
for j in range(len()):
print(maze[i][j])
file.close()
I want to be able to have acess to every single character inside the file, so my goal for now is to print it one by one. But I have no idea what to write inside the range of the second for loop.
I know it's kind of a dumb question, but I'm really stuck. Thank you!