4. Flow Control

Flow Control is used for making decisions in programs. This decision making helps to turn the output of a program based on the executed conditions in the program. They allow a program to be modular and also compact by reducing lines of code. Python supports all the general statements for conditions and loops except for switch and do...while clauses. This is going to be a small chapter so let’s get to it real quick.