Skip to Content
Learn
Conditionals & Control Flow
Go With the Flow

Just like in real life, sometimes we’d like our code to be able to make decisions.

The Python programs we’ve written so far have had one-track minds: they can add two numbers or print something, but they don’t have the ability to pick one of these outcomes over the other.

Control flow gives us this ability to choose among outcomes based on what else is happening in the program.

Instructions

1.

Check out the code in the editor. You’ll see the type of program you’ll be able to write once you’ve mastered control flow. Click Run to see what happens!

Folder Icon

Take this course for free

Already have an account?