The range function specifies a range of integers:
range(start, stop) - the integers between start (inclusive)
and stop (exclusive)
The third value can be accepted by specifying the change between the values.
range(start, stop, step) - the integers between start (inclusive)
and stop (exclusive) by step
For Example you can see below code:
for x in range(5, 0, -1):
print x
print "Blastoff!"
Output:
5
4
3
2
1
Blastoff!
0 Comment(s)