Chapter 27 More about Flowcharts with Loop Control Structures

27.1 Introduction

By working through the previous chapters, you have become familiar with all the loop control structures. Since flowcharts are an ideal way to learn “Algorithmic Thinking” and to help you better understand specific control structures, this chapter will teach you how to convert a Python program to a flowchart as well as how to convert a flowchart to a Python program.

27.2 Converting Python Programs to Flowcharts

To convert a Python program to a flowchart, you need to recall all loop control structures and their corresponding flowcharts. Following you will find them all summarized.

The Pre-Test Loop Structure

while Boolean_Expression:
A statement or block of statements ...

Get Python and Algorithmic Thinking for the Complete Beginner 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.