Mastery 20 Use of loops with for

In this mastery I will explain the use of the loop for in python

First we use for when we now how many times the cycles is going to be repeated, so  the syntax is–> “for i in range(X)”

where “i” is just a variable that is changing his value each time that the loop is completed and “x” is the times of the cycle will be repeated.

here is a link that has examples of this: http://www.tutorialspoint.com/python/python_for_loop.htm

CC BY 4.0 Mastery 20 Use of loops with for by Efrain Duarte is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.