FOR LOOP IN PYTHON
Loops are used to execute a piece
of code or set of statements multiple times in a program as long as the
condition is true. For loop is the one of the loop structure in Python. It has
the ability to iterate over the items of any sequence using “range”, “in” and
some other predefined keywords.
Syntax:
For iterating_var in sequence:
Statement(s)
Flowchart:
Watch my video to get the detailed
view of how to use while loop with a practical explanation.
Comments
Post a Comment