© Kristian Rother 2017

Kristian Rother, Pro Python Best Practices, 10.1007/978-1-4842-2241-6_3

3. Semantic Errors in Python

Kristian Rother

(1)Berlin, Germany

Have you tried turning it off and on again?

—The IT Crowd, Helpdesk message on an answering machine

For the MazeRun game to become interesting, we will need mazes. The player figure shall move around these mazes, eat dots, and be chased by monsters. In this chapter, we will write a program that produces such mazes. When implementing that program, we will reach a point where the program is almost working. Probably, you are familiar with the phenomenon: You have taken care of all Exceptions that occurred in the first test runs. However, the program still does not do what it is supposed to do. ...

Get Pro Python Best Practices: Debugging, Testing and Maintenance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.