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 times… Python has primarily 3 Loop types which are: For Loop
Key Note : You can put any type of loop inside of any other type of loop.There are 3 Looping control Statements which are as follows: Break Statement, Continue Statement and Pass Statement 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.Read more about data types and their classification in my blog at https://k21academy.com/python16
Join our Free Class to know more about it.
Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Specialising in Design, Implement, and Trainings.