range function with steps : range « Buildin Function « Python






range function with steps

range function with steps

print range(5, 10)

print range(0, 10, 3)

print range(-10, -100, -30)

           
       








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.range() Functionrange() Function
6.Demo the range functionDemo the range function
7.range with steprange with step