Chapter 20 More about Flowcharts with Decision Control Structures

20.1 Introduction

By working through the previous chapters, you've become familiar with all the decision control structures. Since flowcharts are an ideal way to learn “Algorithmic Thinking” and to help you better understand specific control structures, this chapter is dedicated to teaching you how to convert a Python program to a flowchart, or a flowchart to a Python program.

20.2 Converting Python Programs to Flowcharts

To convert a Python program to its corresponding flowchart, you need to recall all the decision control structures and their corresponding flowchart fragments. They are all summarized here.

The single-alternative decision structure

The dual-alternative decision ...

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.