Control Flow in Python

Vijay Kumar Sharma, Vimal Kumar, Swati Sharma, Shashwat Pathak · 2021

In this chapter, a further insight into the control flow is presented, which explains the flow of logical instructions within a program. While programming we write conditional, transfer, and iterative statements. These conditional statements define some particular conditions and are given with if-else statements. Transfer statements are used to halt the current process and shift to some other program routine. Iterative statements are used when we have to perform any operation multiple times and the program is defined to enter in a loop. Loops play a very important role in performing complex tasks with given conditions. Different loops are discussed, which will help the reader to create a robust loop statement and use the logical conditions in an easier and confident manner.

Read the paper · More papers on PaperTik