A control structure (or flow of control) is a block of programming that analyses variables and chooses a direction in which to go based on given parameters. In simple sentence, a control structure is just a decision that the computer makes. So, it is the basic decision-making process in programming and flow of control determines how a computer program will respond when given certain conditions and parameters.
Flow of control through any given function is implemented with three basic types of control structures:
🔷 Sequential: default mode. Sequential execution of code statements (one line after another) -- like following a recipe
🔶 Selection: used for decisions, branching -- choosing between 2 or more alternative paths. In Python, these are the types of selection statements:
◼️ if
◻️ if-else
◼️ if-elif-else
🔷 Repetition: used for looping, i.e. repeating a piece of code multiple times in a row. In Python, there are three types of loops:
◼️ while
◻️ for
🔴 Subscribe to our channel to get video updates.
Hit the subscribe button above:
/ gktcsinnovations
----------------------------------------------------------
🔵 Become a Learner: https://gktcs.in/authentication/regis...
----------------------------------------------------------
⚫️ Become a Trainer: https://gktcs.in/trainer_registration/
----------------------------------------------------------
🔵 Website (For India): https://www.gktcs.in/
⚫️ Website (For Other Country): https://www.gktcs.com/
🔵 LinkedIn: / gktcs-inn. .
⚫️ Facebook: / gktcsinnovat. .
🔵 Twitter: / gktcs
⚫️ Instagram: / gktcs_innov. .
Sur cette page du site, vous pouvez voir la vidéo en ligne Control Structure in Python [ Python tutorial for beginner | Flow Control | Introduction to Python ] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur GKTCS INNOVATIONS 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 376 fois et il a aimé 6 téléspectateurs. Bon visionnage!