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. .
Nesta página do site você pode assistir ao vídeo on-line Control Structure in Python [ Python tutorial for beginner | Flow Control | Introduction to Python ] duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário GKTCS INNOVATIONS 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 376 vezes e gostou 6 espectadores. Boa visualização!