From the course: Python Data Structures and Algorithms

Challenge: Read and display a maze from a text file - Python Tutorial

From the course: Python Data Structures and Algorithms

Challenge: Read and display a maze from a text file

(upbeat music) - [Instructor] So just a quick challenge for you to practice reading a maze from a text file. So read the file named challenge_maze.txt provided in the folder called mazes into bison using the provided read file function, and then print the maze to the screen with each row in a new line. So the results should look like the image below, and you're going to be doing this in your IDE. So you can just add code to what we've got already and see how you get on. It's going to look very much like what we've already got.

Contents