The in range functionality doesn’t work for me:
for x in range(0, 10):
print str(x)
What if I want to count by twos (or other discrete increment)? In Java or C this is simple, but in Python can you also set the increment of the counter with each iteration of the loop?
range function takes step value as third argument..