ABSTRACT

In Chapter 3, Python statements such as if, if…else, if…elif…else are taught which are used to transfer the control from one part of the program to another. Loops to run one or more statements repeatedly are examined. Controlling the flow of execution is carried out through break and continue statements. To take advantage of the iterative capabilities in a computer, you need to know how to include loops and conditional logic within your program. How to deal with errors in input is also part of this chapter.