# Control Flow

To understand everything that 61A is trying to teach you, it's important to understand the fundamental idea that everything is based on — **how are Python programs executed?**

Let's start by talking about control flow. The flow of control is the order in which statements are executed by a programming language. For the purposes of this class, let's establish a core assumption: **only one line of Python code can be executed at any given time.**

With this assumption in mind, let us analyze the different ways in which we can mess around with the flow of control in Python.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://calnotes.gitbook.io/cs61a-guidebook/building-blocks/control-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
