Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Control flow

Until now, we have learned how to give simple instructions to Python, who exectues them all, in order, from top to bottom. In this chapter, we discover how to control the execution of Python so that the commands don’t necessarily flow top to bottom but in any order we like, based on pre-set conditions and repeating pieces of code as much as we like.