range() Function : range « Buildin Function « Python






range() Function

range() Function

# iterate over a sequence of numbers, 
# the built-in function range() comes in handy.

print range(10)





           
       








Related examples in the same category

1.Assigning Consecutive ValuesAssigning Consecutive Values
2.Demonstrates the range() functionDemonstrates the range() function
3.range() function with steprange() function with step
4.Demonstrates the range() function with negative step
5.Demo the range functionDemo the range function
6.range function with stepsrange function with steps
7.range with steprange with step