we have two types of loops in Python, and they are the for and while loop. The For loops can iterate over a sequence of numbers using both the "range" and "xrange" functions.
The range function returns a new list with numbers of that specified range, while the xrange returns an iterator.
Here are the links to my previous tutorials on Python programming.