Control Flow
- Authors: Krishna Kumar Mohbey1, Malika Acharya2
-
View Affiliations Hide AffiliationsAffiliations: 1 Department of Computer Science, Central University of Rajasthan, Rajasthan, India 2 Department of Computer Science, Central University of Rajasthan, Rajasthan, India
- Source: Basics of Python Programming: A Quick Guide for Beginners , pp 43-60
- Publication Date: December 2023
- Language: English
Control Flow, Page 1 of 1
< Previous page | Next page > /docserver/preview/fulltext/9789815179637/chap3-1.gifIt's now the time for the readers to acquaint themselves with the control flow in the programming. So far the users have seen the linear path of execution, where the execution commences from the top and moves sequentially to the bottom. Further, our world is filled with tasks required to run in loops, for example in banking applications, unless the user enters the correct password the system prompts the dialogue "Please enter the correct password". In this chapter, we introduce the concept of control flow through which the users can decide the execution path for the program and the looping constructs to iterate through the tasks. Our key takeaways from this chapter are listed below: 1. Understanding the decision control statements. 2. Programming with if-else ladder and its variants. 3. A hand on for, and while loop statements. 4. Understanding the control flow alterations the jump statements like break, continue and pass.<br>
-
From This Site
/content/books/9789815179637.chap3dcterms_subject,pub_keyword-contentType:Journal105