From the course: Python Data Structures and Algorithms

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Challenge: Read and display a maze from a text file

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