Mega Code Archive

 
Categories / Python / Buildin Function
 

Demonstrates the range() function with negative step

print "\n\nCounting backwards:" for i in range(10, 0, -1):     print i,