Introduction: Graphical Explanation of "for Loop-range Function" in Python

About: Occupation: tech support

Graphical Explanation of "for loop-range function" in Python.

Step 1: Graphical Explanation of "for Loop-range Function" in Python.

Example:

for number in range(1, 101, 1)

Using “for” loop:

- Each number from list

- placed in variable “number”

- during every pass of the “for” loop

Using the “range” function:

- Create a list starting at “1”

- then increment the list by “1” for each subsequent number in list

- until you hit “100”