Loop The first statement in a function is executed first, followed by the second, and so on.
There may be a situation when you need to execute a block of code several number of times. Programming languages provide various control structures that allow for more complicated execution paths.
A loop statement allows us to execute a statement or group of statements multiple times.
* Types of Loops: While loop for loop Nested loop
Loop control statements
Loop control statements change execution from its normal sequence. When execution leaves a scope, all automatic objects that were created in that scope are destroyed.
* Some are the Loop control statements are: break Statement continue Statement pass Statement
To know more about these Python Loops and Control Statements covered in our Day 2 session Check my blog at: k21academy.com/pythonday2
Topics that we’ll cover in this blog:
> Python Loop
> Control Statements
Join our Free Class to know more about it.