11

Control Flow

In this chapter, we will take a deeper look at problems and identify the input and output necessary to design an algorithm for our problems. Throughout this chapter, you will learn how algorithms are read and the order in which instructions are carried out. You will also learn how to use functions and loops to manipulate the control flow in your algorithms.

We will cover the following topics in this chapter:

  • Defining control flow and its tools
  • Using if, for, and range() and other control flow tools
  • Using loops and conditionals
  • Revisiting functions

By the end of this chapter, we will know how control flow is defined, how to use the if, for, and range() functionalities when designing algorithms in computational thinking, and ...

Get Applied Computational Thinking with Python - Second Edition 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.